Run from Docker registry
The image is available from the Docker registry and this is the simplest way to get it.
To run the image use one of the following commands:
Get help on commands:
docker run --rm -v $PWD:/docs jsloan117/mkdocs
Create a new MkDocs project:
docker run --rm -v $PWD:/docs jsloan117/mkdocs new docs
Run the builtin development server:
docker run --rm -p 8000:8000 -v $PWD:/docs jsloan117/mkdocs serve -a 0.0.0.0:8000
Building MkDocs site:
docker run --rm -v $PWD:/docs jsloan117/mkdocs build
Publishing to github requires some method to authenticate against GitHub (recommended to use SSH remote):
docker run --rm -v $HOME/.ssh:/root/.ssh -v $PWD:/docs jsloan117/mkdocs gh-deploy