
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Pre-baked ComfyUI image for RunPod and Vast.ai with fast cold start.
Custom nodes and models are declared in a config.json and downloaded on first boot — the workflow lives in the volume, not the image.
| Tag | Base image | torch | CUDA | Min NVIDIA driver | When to pick |
|---|---|---|---|---|---|
latest | pytorch/pytorch:2.12.0-cuda13.0-cudnn9-runtime | 2.12.0+cu130 | 13.0 | R580+ | Default. Blackwell (RTX 5090, B200) and any pod whose host advertises CUDA ≥ 13. |
cu130 | (alias for latest, same image ID) | 2.12.0+cu130 | 13.0 | R580+ | Explicit pin when you want CUDA 13 but don't want to follow a moving latest. |
cu128 | pytorch/pytorch:2.11.0-cuda12.8-cudnn9-runtime | 2.11.0+cu128 | 12.8 | R555+ | Older drivers (A40, A100, L40 on hosts stuck on R5xx). Pre-flight aborts :latest on these. |
Both tags ship the same entrypoint, nginx setup, custom-node provisioning and pre-flight GPU check. The only difference is the torch / CUDA stack baked into the base image. SageAttention 2.2.0 wheels for either combo are pulled at boot from https://github.com/tcpassos/sage-wheels-linux.
--build-arg COMFYUI_VERSION=)hf_transfer + aria2c for parallel downloads, shallow clonestorch.cuda errors)Generate a config.json at comfyforge.app (import a workflow → publish → copy the URL), then point the container at it via CONFIG_URL. CONFIG_URL is optional: without it, the image boots with a minimal example (ComfyUI-Manager + Lora Manager, no models).
| Field | Value |
|---|---|
| Container Image | tcpassos/comfyui-cloud:latest |
| Container Disk | 20–25 GB (image + pip caches) |
| Volume Disk | 40–100 GB (models live here) |
| Volume Mount Path | /workspace |
| Expose HTTP Ports | 8188 |
| Field | Value |
|---|---|
| Image Path:Tag | tcpassos/comfyui-cloud:latest |
| Launch Mode | Docker ENTRYPOINT |
| Docker Options | -p 8188:8188 -p 22:22 -e OPEN_BUTTON_PORT=8188 |
| Disk Space | 25 GB minimum (no container/volume split — attach a separate volume for models) |
Pick the tag that matches the host driver:
:latest/:cu130(CUDA 13) needs NVIDIA driver ≥ R580,:cu128(CUDA 12.8) needs ≥ R555. On RunPod / Vast.ai, filter offers by CUDA Version ≥ 13.0 for:latest/:cu130or ≥ 12.8 for:cu128. The image's pre-flight aborts in <1s witherror 804: forward compatibility was attempted on non supported HWif the driver is too old — swap the tag and redeploy.
| Variable | Default | Description |
|---|---|---|
CONFIG_URL | (unset) | Public URL of a config.json. If unset and /workspace/config.json doesn't exist, the bundled example is used. |
HF_TOKEN | — | Hugging Face token. Required for gated models (FLUX.1, etc.). |
CIVITAI_TOKEN | — | Civitai API token. Required for Civitai models. |
INSTALL_SAGE | true | Install SageAttention 2.x at boot. |
SAGE_PREBUILT | true | Try a prebuilt wheel matching your GPU's SM before any source build. |
SAGE_PREBUILT_REPO | tcpassos/sage-wheels-linux | GitHub repo for prebuilt Sage wheels. |
SAGE_BUILD_JOBS | 4 | MAX_JOBS for the fallback source build (lower it on small instances). |
UPDATE_NODES | false | git pull unpinned custom nodes on every boot. |
PORT | 8188 | ComfyUI / nginx port. |
OPEN_BUTTON_PORT | — | (Vast.ai) Sets the blue Open button target. |
OPEN_BUTTON_TOKEN | — | (Vast.ai) Bearer token appended to the Open URL. |
FILEBROWSER_PASSWORD | random | Admin password for File Browser at /files/. Printed in the boot log if random. |
GH_TOKEN | — | Optional — raises GitHub API rate limit when querying Sage releases. |
| Item | Location | Persistent? |
|---|---|---|
| ComfyUI, Python, torch, uv, aria2 | /opt/ComfyUI (image) | No |
| Custom nodes | /workspace/custom_nodes | Yes (volume) |
| Models | /workspace/models/<category> | Yes |
| Outputs, ComfyUI user configs | /workspace/output, /workspace/user | Yes |
| SageAttention wheel cache | /workspace/cache/sage_wheels | Yes |
config.json (nodes + models) | /workspace/config.json | Yes |
config.json (from CONFIG_URL or the bundled example).nodes[].uv pip install -r all node requirements in a single resolver pass.models[] with aria2c (up to 16 connections/file, falls back to curl).8188.Subsequent boots are ~30 s: nodes and models are already on the volume.
bashdocker run --rm --entrypoint python3 tcpassos/comfyui-cloud:latest \ -c "import torch, torchvision, torchaudio; print(torch.__version__, torch.version.cuda)" # 2.12.0+cu130 13.0
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务