Uses the official Jekyll Docker Image (jekyll/jekyll) and Docker Compose.
docker-compose up
That will start the docker-container and run Jekyll. Folders and ports are mapped and the homepage can be browsed to at:
Added or changed files will be automatically served.
Ctrl+C
in the terminal will stop the Jekyll server.
docker-compose down
That will remove the docker-container.
docker image rm jekyll/jekyll
In more complex Docker environments do the following.
docker image ls jekyll/jekyll
That will list all of the docker images on the local machine. Grab the jekyll/jekyll
image Id and use it in the following command.
docker image rm imageId
Changes pushed to the repo's main
branch are automatically published by GitHub.