corundex/comfyui-rocm🔥 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 [***] | sudo gpg --dearmor -o /etc/apt/keyrings/rocm.gpg echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] [***] 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=commonDownloads comprehensive starter set:
MODEL_DOWNLOAD=realisticDownloads realistic photo models:
MODEL_DOWNLOAD=photorealisticDownloads SDXL-based photorealistic models:
MODEL_DOWNLOAD=artisticDownloads creative/stylized models:
MODEL_DOWNLOAD=allDownloads everything from all model sets above (⚠️ Large download ~100GB+)
MODEL_DOWNLOAD=noneSkips all downloads - uses only existing models in volumes
Add your own sections to models.yaml and use them:
bashMODEL_DOWNLOAD=mycustom
bashdocker run -d \ --device=/dev/kfd --device=/dev/dri --group-add=video \ -p 8188:8188 \ -v ./models:/workspace/ComfyUI/models \ corundex/comfyui-rocm:latest
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
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
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
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
models.yamlAdd your own model sections in YAML format:
yamlmodels: mycustom: - name: "My Custom Model" url: "[***]" path: "checkpoints/my_model.safetensors" min_size: 2000000000 - name: "Another Model" url: "[***]" path: "checkpoints/model2.safetensors" min_size: 4000000000
/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 GitHub repository to:
This project is licensed under GPL-3.0.
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
在 Linux 系统配置镜像服务
在 Docker Desktop 配置镜像
Docker Compose 项目配置
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
MacOS OrbStack 容器配置
在宝塔面板一键配置镜像
Synology 群晖 NAS 配置
飞牛 fnOS 系统配置镜像
极空间 NAS 系统配置服务
爱快 iKuai 路由系统配置
绿联 NAS 系统配置镜像
QNAP 威联通 NAS 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
无需登录使用专属域名
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
免费版仅支持 Docker Hub 访问,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等;免费版仅支持 docker.io。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
来自真实用户的反馈,见证轩辕镜像的优质服务