
duhongming/comfyui! [***]
需要安装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: # [***] - "traefik.enable=true" # [***] - "traefik.docker.network=traefik" # [***] - "traefik.http.routers.comfyui.rule=Host(`comfyui.example.top`)" - "traefik.http.routers.comfyui.entrypoints=http" # [***] - "traefik.http.services.comfyui.load***.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
也可以自行改造
# [***] # [***] # [***] 12 Bookworm # [***] 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 [***] RUN echo ${LATEST_TAG} ARG LATEST_TAG=${LATEST_TAG} WORKDIR / # 添加一个随机参数(如当前时间戳),每次构建时变化,使缓存失效 ARG CACHEBUST=1 RUN git clone [***] && cd ComfyUI && git checkout ${LATEST_TAG} RUN pip install -r /ComfyUI/requirements.txt WORKDIR /ComfyUI/custom_nodes/ RUN git clone [***] && pip install -r ComfyUI-Manager/requirements.txt RUN git clone [***] && pip install -r ComfyUI-Crystools/requirements.txt #RUN git clone [***] && pip install -r comfy-asset-downloader/requirements.txt #RUN git clone [***] ComfyUI-DepthAnythingV2/;pip install -r ComfyUI-DepthAnythingV2/requirements.txt #RUN git clone [***] ComfyUI-Depth-Pro/;pip install -r ComfyUI-Depth-Pro/requirements.txt #RUN git clone [***] ComfyUI-ReActor/;pip install -r ComfyUI-ReActor/requirements.txt #RUN git clone [***] 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






manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务