Uses the official Jekyll Docker Image (jekyll/jekyll) and Docker Compose.
docker-compose upThat 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 downThat will remove the docker-container.
docker image rm jekyll/jekyllIn more complex Docker environments do the following.
docker image ls jekyll/jekyllThat 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 imageIdChanges pushed to the repo's main branch are automatically published by GitHub.