A simple markdown viewer, lightweight and unlimited.
867
A simple markdown viewer works in Docker, lightweight and unlimited.
When you run this image, it'll try to create a default index page and then start a simple HTTP server. If you are already present your index page, it will skip the prepare step and create the server directly.
git clone https://github.com/AyakuraYuki/markdown-viewer.git
cd markdown-viewer
sh build.sh
In
markdown-viewerfolder, execute the following command:
sh run.sh <port> <doc_path> [container_name]
docker pull ayakurayuki/markdown-viewer
docker run --detach -p <port>:80 -v /path/to/doc_folder:/docroot markdown_viewer
for example:
docker run --detach -p 13333:80 -v /path/to/doc_folder:/docroot markdown_viewer
the following command will show you all running container
docker ps -a
find a row with markdown_viewer image, then copy its container ID
for example, here we got a container ID afd72988f88a
use the following command to stop this container
docker container stop afd72988f88a
Content type
Image
Digest
sha256:f59951c13…
Size
21.5 MB
Last updated
over 2 years ago
docker pull ayakurayuki/markdown-viewer