sudo apt-get install docker.io
sudo docker build -t jekyll-blog .
sudo docker run -itd -p 1234:4000 -v "$(pwd):/jekyll-blog" --name blog jekyll-blog
# restart your container
sudo docker restart blog
# tail your container's logs
sudo docker logs -f blog
# remove all containers
sudo docker rm $(docker ps -qa)
# remove all images
sudo docker rmi $(docker images -q)
Once the Docker container is running, go to localhost:1234