镜像概览

完整引用
docker.io/yuzutech/kroki-mermaid
Registry
docker.io
命名空间
yuzutech
仓库
kroki-mermaid
已缓存 Tag 数
56
最近同步
07/06/2026, 07:13 PM

简介

Kroki Mermaid 图表渲染微服务镜像,接收文本 DSL 返回 SVG/PNG,供文档站点、Wiki 或 CI 将 Mermaid 源码转为矢量图。

详细介绍

kroki-mermaid 是 Kroki 拆分出的 Mermaid 专用后端,HTTP POST 提交 diagram 源码并同步返回渲染结果,可与 kroki、asciidoctor 或静态站点生成器组合。单进程无状态,适合水平扩展;与客户端 mermaid.js 相比服务端渲染便于 PDF 流水线与统一字体。注意限制请求体大小与超时,公网暴露需 rate limit 防滥用。

快速启动

docker run -d --name kroki-mermaid \
  -p 8002:8002 \
  docker.io/yuzutech/kroki-mermaid:latest

推荐实践

docker run -d --name kroki-mermaid \
  --restart unless-stopped \
  -p 8002:8002 \
  -e KROKI_MERMAID_HOST=0.0.0.0 \
  -e KROKI_MERMAID_PORT=8002 \
  -e KROKI_SAFE_MODE=secure \
  docker.io/yuzutech/kroki-mermaid:0.25.0

核心参数说明

  • -p 8002:8002 — Mermaid 渲染 HTTP 端口
  • -e KROKI_MERMAID_HOST — 监听地址
  • -e KROKI_SAFE_MODE=secure — 限制危险 diagram 特性
  • --restart unless-stopped — 文档流水线依赖持续可用
  • 固定 tag — 与 Kroki 网关版本匹配
  • 无状态 — 无需持久卷,可随意扩副本

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: kroki-mermaid
spec:
  replicas: 3
  selector:
    matchLabels:
      app: kroki-mermaid
  template:
    metadata:
      labels:
        app: kroki-mermaid
    spec:
      containers:
        - name: kroki-mermaid
          image: docker.io/yuzutech/kroki-mermaid:0.25.0
          ports:
            - containerPort: 8002
          env:
            - name: KROKI_SAFE_MODE
              value: secure
---
apiVersion: v1
kind: Service
metadata:
  name: kroki-mermaid
spec:
  selector:
    app: kroki-mermaid
  ports:
    - port: 8002
      targetPort: 8002

与 kroki 网关同命名空间 ClusterIP 串联;HPA 按 CPU 扩缩,Ingress 或内部 Service Mesh 限制调用来源。

最新 Tag(20 条)

查看全部 56 个 Tag →
Tag架构推送时间大小Digest同步期望操作
docker.io/yuzutech/kroki-mermaid
:latest
linux/arm64linux/amd64
2026/06/12 01:06432.1 MBsha256:e438c1b2e3f7
docker.io/yuzutech/kroki-mermaid
:0.31.0
linux/arm64linux/amd64
2026/06/12 01:06432.1 MBsha256:e438c1b2e3f7
docker.io/yuzutech/kroki-mermaid
:0.30.1
linux/arm64linux/amd64
2026/03/02 16:44404.8 MBsha256:d5cf7fb0fc5d
docker.io/yuzutech/kroki-mermaid
:0.30.0
linux/arm64linux/amd64
2026/02/19 22:42404.7 MBsha256:d82eec628405
docker.io/yuzutech/kroki-mermaid
:0.29.1
linux/arm64linux/amd64
2025/12/21 07:29404.7 MBsha256:57d5d0bfaf19
docker.io/yuzutech/kroki-mermaid
:0.28.0
linux/arm64linux/amd64
2025/05/19 21:46398.1 MBsha256:7b8c4360d970
docker.io/yuzutech/kroki-mermaid
:0.27.0
linux/arm64linux/amd64
2025/02/21 03:58365.2 MBsha256:02c278f0db5e
docker.io/yuzutech/kroki-mermaid
:0.26.0
linux/arm64linux/amd64
2024/11/11 06:00365.2 MBsha256:7f6aa1a68bd7
docker.io/yuzutech/kroki-mermaid
:0.25.0
linux/arm64linux/amd64
2024/03/31 18:41363.0 MBsha256:25c2ed881116
docker.io/yuzutech/kroki-mermaid
:0.24.1
linux/arm64linux/amd64
2024/01/14 00:30364.3 MBsha256:d64ef47339f2
docker.io/yuzutech/kroki-mermaid
:0.23.0
linux/arm64linux/amd64
2023/09/24 01:140.0 MBsha256:b86c313d69f1
docker.io/yuzutech/kroki-mermaid
:0.22.0
linux/arm64linux/amd64
2023/08/16 20:42367.2 MBsha256:4f552812a4b4
docker.io/yuzutech/kroki-mermaid
:0.21.3
linux/arm64linux/amd64
2023/05/27 18:40256.4 MBsha256:8136fd1dc289
docker.io/yuzutech/kroki-mermaid
:0.21.2
linux/arm64linux/amd64
2023/05/20 23:35256.4 MBsha256:d8379e20cf22
docker.io/yuzutech/kroki-mermaid
:0.21.1
linux/arm64linux/amd64
2023/05/20 23:17256.4 MBsha256:e095e842cc92
docker.io/yuzutech/kroki-mermaid
:0.21.0
linux/arm64linux/amd64
2023/05/19 00:45254.4 MBsha256:3794df045db9
docker.io/yuzutech/kroki-mermaid
:0.20.0
linux/arm64linux/amd64
2023/03/18 19:42254.4 MBsha256:7596b531233f
docker.io/yuzutech/kroki-mermaid
:0.19.0
linux/arm64linux/amd64
2023/01/19 03:31254.4 MBsha256:daa40173de41
docker.io/yuzutech/kroki-mermaid
:0.18.0
linux/arm64linux/amd64
2022/11/14 17:45253.8 MBsha256:2f1ad7dcecbb
docker.io/yuzutech/kroki-mermaid
:0.17.2
linux/amd64linux/arm64
2022/06/02 00:04219.5 MBsha256:2b4f0bd69856