Jekyll on windows using docker


recently i installed docker on windows. i need to manage this blog but don’t want any complexity (e.g. installed ruby, setting up dependencies).

first i installed docker.

some issues in running docker:

now docker running as expected.


setting up blog in docker (blog is based on jekyll and hosted on github)

docker run -v "$(pwd):/usr/src/app" -p "4000:4000" starefossen/github-pages

this will create a new cotainer and mount current directory (blog) to /usr/src/app which use to serve blog on localhost:4000

now you can rename the new container (e.g. blog) and run it via powershell after starting the docker.

docker start -i blog