Usage:
Navigate to your jekyll-project folder you want to serve:
cd /your/jekyll/project/folder
Once you are on the root of your project-folder start the image by typing this command:
sudo docker run --rm -it --volume="$PWD:/root/html" -p 4100:4000 ramirezfx/docker-jekyll:latest /bin/sh -c "cd /root/html && bundle exec jekyll serve --host 0.0.0.0"
Once done, you can access your page by navigating your webbrowser to: http://localhost:4100
If you want to build your project, navigate to your project folder as described above and type the following command:
sudo docker run --rm -it --volume="$PWD:/root/html" -p 4100:4000 ramirezfx/docker-jekyll:latest /bin/sh -c "cd /root/html && bundle exec jekyll build"
You can find the project in github here:
https://github.com/ramirezfx/docker-jekyll-4.2.2
You can clone the project by typing:
git clone https://github.com/ramirezfx/docker-jekyll-4.2.2.git
Content type
Image
Digest
sha256:7ae8b33c2…
Size
221.1 MB
Last updated
almost 4 years ago
docker pull ramirezfx/docker-jekyll