
🔥 ComfyUI with AMD ROCm support - Run ComfyUI on AMD GPUs with optimized ROCm-compatible dependencies.
/models:/workspace/ComfyUI/models \ -v $(pwd)/output:/workspace/ComfyUI/output \ corundex/comfyui-rocm:latest
Access ComfyUI at: http://localhost:8188
bash# Ubuntu/Debian curl -fsSL https://repo.radeon.com/rocm/rocm.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/rocm.gpg echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.4 jammy main" | sudo tee /etc/apt/sources.list.d/rocm.list sudo apt update && sudo apt install rocm-dkms sudo usermod -a -G render,video $USER
bashrocm-smi # Should show your AMD GPU(s)
bashdocker run -d \ --name comfyui-rocm \ --device=/dev/kfd \ --device=/dev/dri \ --group-add=video \ -p 8188:8188 \ -v ./models:/workspace/ComfyUI/models \ -v ./output:/workspace/ComfyUI/output \ -v ./input:/workspace/ComfyUI/input \ -v ./custom_nodes:/workspace/ComfyUI/custom_nodes \ corundex/comfyui-rocm:latest
| Host Path | Container Path | Purpose |
|---|---|---|
./models | /workspace/ComfyUI/models | Store models (checkpoints, VAE, LoRA, etc.) |
./output | /workspace/ComfyUI/output | Generated images and videos |
./input | /workspace/ComfyUI/input | Input images for processing |
./custom_nodes | /workspace/ComfyUI/custom_nodes | Custom ComfyUI extensions |
The ComfyUI Docker image includes an intelligent model management system that automatically downloads models based on your needs.
Control model downloading with the MODEL_DOWNLOAD environment variable:
MODEL_DOWNLOAD=default (Default)
Downloads essential model to get started:
MODEL_DOWNLOAD=common
Downloads comprehensive starter set:
MODEL_DOWNLOAD=realistic
Downloads realistic photo models:
MODEL_DOWNLOAD=photorealistic
Downloads SDXL-based photorealistic models:
MODEL_DOWNLOAD=artistic
Downloads creative/stylized models:
MODEL_DOWNLOAD=all
Downloads everything from all model sets above (⚠️ Large download ~100GB+)
MODEL_DOWNLOAD=none
Skips all downloads - uses only existing models in volumes
Custom Model Sets
Add your own sections to models.yaml and use them:
bashMODEL_DOWNLOAD=mycustom
Basic Usage (SD 1.5 only)
bashdocker run -d \ --device=/dev/kfd --device=/dev/dri --group-add=video \ -p 8188:8188 \ -v ./models:/workspace/ComfyUI/models \ corundex/comfyui-rocm:latest
Common Model Set
bashdocker run -d \ --device=/dev/kfd --device=/dev/dri --group-add=video \ -p 8188:8188 \ -e MODEL_DOWNLOAD=common \ -v ./models:/workspace/ComfyUI/models \ corundex/comfyui-rocm:latest
All Models (Large Download)
bashdocker run -d \ --device=/dev/kfd --device=/dev/dri --group-add=video \ -p 8188:8188 \ -e MODEL_DOWNLOAD=all \ -v ./models:/workspace/ComfyUI/models \ corundex/comfyui-rocm:latest
No Downloads (Use Existing Models)
bashdocker run -d \ --device=/dev/kfd --device=/dev/dri --group-add=video \ -p 8188:8188 \ -e MODEL_DOWNLOAD=none \ -v ./models:/workspace/ComfyUI/models \ corundex/comfyui-rocm:latest
Automatic Skip Existing
Model Inventory
On startup, see what's available:
[ComfyUI] Current model inventory: checkpoints: 3 models vae: 1 models loras: 2 models upscale_models: 1 models controlnet: 3 models embeddings: 1 models
Edit models.yaml
Add your own model sections in YAML format:
yamlmodels: mycustom: - name: "My Custom Model" url: "https://example.com/model.safetensors" path: "checkpoints/my_model.safetensors" min_size: 2000000000 - name: "Another Model" url: "https://example.com/model2.safetensors" path: "checkpoints/model2.safetensors" min_size: 4000000000
Model Configuration Format
/workspace/ComfyUI/models/http://localhost:8188sample_workflow.json (included in this directory)Create docker-compose.yml:
yamlversion: '3.8' services: comfyui-rocm: image: corundex/comfyui-rocm:latest container_name: comfyui-rocm devices: - /dev/kfd:/dev/kfd - /dev/dri:/dev/dri group_add: - video ports: - "8188:8188" volumes: # Model storage (checkpoints, VAE, LoRA, etc.) - ./data/models:/workspace/ComfyUI/models # Generated images and outputs - ./data/output:/workspace/ComfyUI/output # Input images for processing - ./data/input:/workspace/ComfyUI/input # Custom nodes and extensions - ./data/custom_nodes:/workspace/ComfyUI/custom_nodes # ComfyUI user settings and workflows - ./data/user:/workspace/ComfyUI/user environment: # Model download behavior: default, common, realistic, photorealistic, artistic, all, none - MODEL_DOWNLOAD=default # ROCm environment - HIP_VISIBLE_DEVICES=0 - CUDA_VISIBLE_DEVICES="" restart: unless-stopped
Run with: docker compose up -d
./data/ ├── models/ # AI models (checkpoints, VAE, LoRA, etc.) │ ├── checkpoints/ # Main AI models (.safetensors) │ ├── vae/ # VAE models for better image quality │ ├── loras/ # LoRA fine-tuning models │ ├── embeddings/ # Text embeddings │ ├── controlnet/ # ControlNet guidance models │ └── upscale_models/ # Image upscaler models ├── output/ # Generated images and videos ├── input/ # Input images for processing ├── custom_nodes/ # ComfyUI extensions └── user/ # User settings and saved workflows
default: Test with basic model firstall: Download full set when readybash# Check ROCm drivers rocm-smi # Check Docker GPU access docker run --rm --device=/dev/kfd --device=/dev/dri rocm/pytorch:latest rocm-smi
bash# Verify ROCm in container docker exec comfyui-rocm python -c "import torch; print(f'ROCm: {torch.cuda.is_available()}')"
This Docker image packages ComfyUI with ROCm support. ComfyUI is licensed under GPL-3.0.
Found an issue or want to contribute? Visit our https://github.com/corundex/comfyui-rocm to:
This project is licensed under GPL-3.0.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务