
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
ComfyUI-Manager 是一款旨在增强 ComfyUI 易用性的扩展程序。它提供管理功能,用于安装、移除、禁用和启用 ComfyUI 的各种自定义节点。此外,此扩展程序还提供了一个中心功能和便捷功能,方便用户访问 ComfyUI 中的各种信息。 https://github.com/Comfy-Org/ComfyUI-Manager
ComfyUI 的一套强大的工具,可以在菜单上实时查看 ComfyUI 使用的资源(CPU、GPU、RAM、VRAM、GPU 温度和内存)! https://github.com/crystian/ComfyUI-Crystools
需要安装traefik
bashdocker compose -p comfyui up -d
yamlservices: comfyui: image: duhongming/comfyui:v0.3.63-3.13.7-bookworm-cu129 container_name: comfyui ports: - "8188:8188" volumes: - /AppData/comfyui/models/:/ComfyUI/models - /AppData/comfyui/input/:/ComfyUI/input - /AppData/comfyui/output/:/ComfyUI/output - /AppData/comfyui/user/:/ComfyUI/user #- /AppData/comfyui/custom_nodes/:/ComfyUI/custom_nodes deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] restart: unless-stopped networks: - traefik labels: # https://doc.traefik.io/traefik/reference/routing-configuration/other-providers/docker/#traefikenable - "traefik.enable=true" # https://doc.traefik.io/traefik/reference/routing-configuration/other-providers/docker/#traefikdockernetwork - "traefik.docker.network=traefik" # https://doc.traefik.io/traefik/reference/routing-configuration/other-providers/docker/#routers - "traefik.http.routers.comfyui.rule=Host(`comfyui.example.top`)" - "traefik.http.routers.comfyui.entrypoints=http" # https://doc.traefik.io/traefik/reference/routing-configuration/other-providers/docker/#services - "traefik.http.services.comfyui.loadbalancer.server.port=8188" networks: traefik: external: true
bashdocker run --name comfyui -dp 8188:8188 \ --runtime=nvidia --gpus all \ -v /AppData/comfyui/models/:/ComfyUI/models \ -v /AppData/comfyui/input/:/ComfyUI/input \ -v /AppData/comfyui/output/:/ComfyUI/output \ -v /AppData/comfyui/user/:/ComfyUI/user \ #-v /AppData/comfyui/custom_nodes/:/ComfyUI/custom_nodes \ duhongming/comfyui:v0.3.63-3.13.7-bookworm-cu129
也可以自行改造
# https://hub.docker.com/r/duhongming/comfyui # https://hub.docker.com/layers/l125/comfyui-for-dify/v0.2.3-cu129/images/sha256-5043c7959736cb27099b21e551555e4471c5c51ff625d951890e32a4b0ea31b9 # https://www.debian.org/releases/ 12 Bookworm # https://www.python.org/downloads/ 3.13.7 # Python 3.13 is very well supported. If you have trouble with some custom node dependencies you can try 3.12 FROM python:3.13.7-bookworm RUN pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu129 RUN echo ${LATEST_TAG} ARG LATEST_TAG=${LATEST_TAG} WORKDIR / # 添加一个随机参数(如当前时间戳),每次构建时变化,使缓存失效 ARG CACHEBUST=1 RUN git clone https://github.com/comfyanonymous/ComfyUI.git && cd ComfyUI && git checkout ${LATEST_TAG} RUN pip install -r /ComfyUI/requirements.txt WORKDIR /ComfyUI/custom_nodes/ RUN git clone https://github.com/ltdrdata/ComfyUI-Manager.git && pip install -r ComfyUI-Manager/requirements.txt RUN git clone https://github.com/crystian/ComfyUI-Crystools.git && pip install -r ComfyUI-Crystools/requirements.txt #RUN git clone https://github.com/ServiceStack/comfy-asset-downloader.git && pip install -r comfy-asset-downloader/requirements.txt #RUN git clone https://github.com/kijai/ComfyUI-DepthAnythingV2.git ComfyUI-DepthAnythingV2/;pip install -r ComfyUI-DepthAnythingV2/requirements.txt #RUN git clone https://github.com/spacepxl/ComfyUI-Depth-Pro.git ComfyUI-Depth-Pro/;pip install -r ComfyUI-Depth-Pro/requirements.txt #RUN git clone https://github.com/Gourieff/ComfyUI-ReActor.git ComfyUI-ReActor/;pip install -r ComfyUI-ReActor/requirements.txt #RUN git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git ComfyUI-VideoHelperSuite/;pip install -r ComfyUI-VideoHelperSuite/requirements.txt EXPOSE 8188 CMD ["python3","/ComfyUI/main.py","--listen","0.0.0.0"]
构建运行
bash# 定义最新tag变量 LATEST_TAG=$(git tag --sort=-creatordate | head -n 1) # 构建镜像 docker build --build-arg LATEST_TAG=$LATEST_TAG -t registry.cn-hangzhou.aliyuncs.com/dockerdance/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129 . # 推送至阿里云仓库 docker push registry.cn-hangzhou.aliyuncs.com/dockerdance/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129 # 标记为第二个仓库标签 docker tag registry.cn-hangzhou.aliyuncs.com/dockerdance/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129 duhongming/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129 # 推送至第二个仓库 docker push duhongming/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129
以下是 duhongming/comfyui 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。






来自真实用户的反馈,见证轩辕镜像的优质服务