Runs mermaid-cli in a container for easy rendering of Mermaid diagrams.
5.1K
Runs mermaid-cli in a container for easy rendering of Mermaid diagrams.
This image is based on Puppeteer's example with a few alterations (it doesn't download language fonts and has an entrypoint suited to mermaid-cli).
Images will be tagged with the same version of the containing mermaid-cli.
docker run -i --rm --cap-add=SYS_ADMIN \
-v <dir>:/mmdc \
luisfarzati/mmdc {options}
$ tree .
.
├── diagrams
│ ├── model.mmd
│ └── workflow.mmd
└── output
2 directories, 2 files
$ docker run -i --rm --cap-add=SYS_ADMIN \
-v `pwd`:/mmdc \
jfyne/mmdc \
-i ./diagrams/workflow.mmd \
-o ./output/workflow.png \
-t forest
Content type
Image
Digest
Size
458 MB
Last updated
almost 6 years ago
docker pull jfyne/mmdc