专属域名
文档搜索
轩辕助手
Run助手
邀请有礼
返回顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像 官方专业版轩辕镜像 官方专业版官方专业版
首页个人中心搜索镜像

交易
充值流量我的订单
工具
提交工单镜像收录一键安装
Npm 源Pip 源Homebrew 源
帮助
常见问题
其他
关于我们网站地图

官方QQ群: 1072982923

corundex/comfyui-rocm Docker 镜像 - 轩辕镜像

comfyui-rocm
corundex/comfyui-rocm
corundex
ComfyUI with AMD ROCm support for GPU-accelerated AI image generation on AMD RX 6000/7000+ GPUs
3 收藏0 次下载
😅 镜像要是出问题,背锅的一定是你
镜像简介版本下载
😅 镜像要是出问题,背锅的一定是你

ComfyUI ROCm Docker Image

🔥 ComfyUI with AMD ROCm support - Run ComfyUI on AMD GPUs with optimized ROCm-compatible dependencies.

![Docker Pulls]([] ![ROCm]([] ![AMD GPU]([***]

corundex/comfyui-rocm GitHub repository

!ComfyUI Interface ComfyUI running on AMD ROCm with sample workflow and generated landscape image

📋 Version Information

  • Base Image: rocm/pytorch:rocm6.4.1_ubuntu24.04_py3.12_pytorch_release_2.6.0
  • Python: 3.12.10
  • PyTorch: 2.6.0+git684f6f2
  • ROCm: 6.4.43483-a187df25c
  • ComfyUI: v0.3.43 (e18f53c, 2025-06-27)

📦 What's Different from Standard ComfyUI?

This ROCm-optimized build:

  • ✅ Uses ROCm PyTorch instead of CUDA PyTorch
  • ✅ Pre-tested dependencies on real AMD hardware

🧪 Tested Package Compatibility

All packages in this container have been tested on real AMD hardware. See requirements_rocm.txt for the complete lists:

✅ ROCm-Compatible Packages (18 total):
  • comfyui-frontend-package==1.23.4
  • comfyui-workflow-templates==0.1.30
  • comfyui-embedded-docs==0.2.3
  • torchsde
  • einops
  • transformers>=4.37.2
  • tokenizers>=0.13.3
  • sentencepiece
  • safetensors>=0.4.2
  • pyyaml
  • Pillow
  • alembic
  • SQLAlchemy
  • kornia>=0.7.1
  • spandrel
  • av>=14.2.0
  • pydantic~=2.0
  • pydantic-settings~=2.0
📦 Pre-installed in ROCm Base (9 total):
  • torch
  • torchvision
  • numpy>=1.25.0
  • aiohttp>=3.11.8
  • yarl>=1.18.0
  • scipy
  • tqdm
  • psutil
  • soundfile
🌙 Incompatible packages (1 total):
  • torchaudio - Excluded from the image

🚀 Quick Start

bash
# Pull and run ComfyUI with ROCm support
docker run -d \
  --device=/dev/kfd \
  --device=/dev/dri \
  --group-add=video \
  -p 8188:8188 \
  -v $(pwd)/models:/workspace/ComfyUI/models \
  -v $(pwd)/output:/workspace/ComfyUI/output \
  corundex/comfyui-rocm:latest

Access ComfyUI at: http://localhost:8188

🎯 What's Included

  • ComfyUI - Latest stable version
  • ROCm-optimized PyTorch - AMD GPU acceleration
  • Filtered dependencies - Only ROCm-compatible packages
  • Ready-to-use workflow - Sample workflow included
  • Persistent storage - Models and outputs preserved

📋 Requirements

Hardware
  • AMD GPU with ROCm support (RX 6000+, RX 7000+, etc.)
  • 8GB+ VRAM (16GB+ recommended for larger models)
Software
  • Docker with GPU support
  • ROCm drivers 6.4+ installed on host
  • Linux (Ubuntu 24.04+ recommended)

🔧 Installation & Setup

1. Install ROCm Drivers
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
2. Verify ROCm Installation
bash
rocm-smi
# Should show your AMD GPU(s)
3. Run ComfyUI Container
bash
docker 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

📁 Volume Mounts

Host PathContainer PathPurpose
./models/workspace/ComfyUI/modelsStore models (checkpoints, VAE, LoRA, etc.)
./output/workspace/ComfyUI/outputGenerated images and videos
./input/workspace/ComfyUI/inputInput images for processing
./custom_nodes/workspace/ComfyUI/custom_nodesCustom ComfyUI extensions

🎛️ Smart Model Management

The ComfyUI Docker image includes an intelligent model management system that automatically downloads models based on your needs.

Model Download Modes

Control model downloading with the MODEL_DOWNLOAD environment variable:

MODEL_DOWNLOAD=default (Default)

Downloads essential model to get started:

  • Stable Diffusion 1.5 - Most popular base model (4GB)
MODEL_DOWNLOAD=common

Downloads comprehensive starter set:

  • Stable Diffusion 1.5 + SD 1.5 VAE
  • SDXL Base 1.0 + SDXL Refiner 1.0
  • ControlNet models (Canny, Depth, OpenPose)
  • Real-ESRGAN upscalers (4x General + 4x Anime)
  • EasyNegative embedding
MODEL_DOWNLOAD=realistic

Downloads realistic photo models:

  • Realistic Vision v5.1 - High-quality realistic images
  • DreamShaper 8 - Versatile realistic model
  • Realistic VAE
MODEL_DOWNLOAD=photorealistic

Downloads SDXL-based photorealistic models:

  • Juggernaut XL v9 - Top-tier SDXL photorealism
  • RealVisXL V4.0 - Excellent SDXL realistic model
MODEL_DOWNLOAD=artistic

Downloads creative/stylized models:

  • Deliberate v2 - Artistic and painterly style
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:

bash
MODEL_DOWNLOAD=mycustom
Docker Usage Examples
Basic Usage (SD 1.5 only)
bash
docker 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
bash
docker 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)
bash
docker 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)
bash
docker 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
Smart Features
Automatic Skip Existing
  • Never re-downloads existing models
  • Validates file sizes - redownloads corrupted files
  • Resume support - continues interrupted downloads
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
Customizing Models
Edit models.yaml

Add your own model sections in YAML format:

yaml
models:
  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
Model Configuration Format
  • name: Human-readable description
  • url: Download URL
  • path: Relative path from /workspace/ComfyUI/models/
  • min_size: Minimum file size in bytes for validation

🎨 Getting Started

Load Sample Workflow
  1. Open ComfyUI at http://localhost:8188
  2. Click "Load" → "Upload"
  3. Upload sample_workflow.json (included in this directory)
  4. Click "Queue Prompt" to generate your first image!

🐳 Docker Compose (Recommended)

Create docker-compose.yml:

yaml
version: '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

Recommended Volume Structure
./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

🧪 Tested Hardware

  • AMD Radeon RX 9060 XT (16GB VRAM) ✅

⚡ Performance Notes

  • Image Generation: ~30-60 seconds for 512x512 (depends on model and steps)
  • Memory Usage: 4-8GB VRAM for basic operations
  • Model Loading: ~30-60 seconds first time, cached afterward
  • Batch Processing: Supported for multiple images

🚀 Performance Tips

  1. Use Persistent Volumes: Always mount model directories to avoid re-downloading
  2. Start with default: Test with basic model first
  3. Upgrade to all: Download full set when ready
  4. Custom Sets: Create targeted collections for specific workflows
  5. External Storage: Use fast SSD for model storage

🔍 Troubleshooting

Container won't start
bash
# Check ROCm drivers
rocm-smi

# Check Docker GPU access
docker run --rm --device=/dev/kfd --device=/dev/dri rocm/pytorch:latest rocm-smi
ComfyUI shows "No GPU detected"
bash
# Verify ROCm in container
docker exec comfyui-rocm python -c "import torch; print(f'ROCm: {torch.cuda.is_available()}')"
Model Download Failures
  • Check internet connection
  • Verify HuggingFace/source availability
  • Check disk space in mounted volumes
  • Review logs for specific error messages
Model Not Found
  • Ensure model downloaded successfully
  • Check file permissions in mounted volumes
  • Verify model file isn't corrupted (size check)
Startup Issues
  • Check MODEL_DOWNLOAD value is valid
  • Ensure volumes are properly mounted
  • Review container logs for errors
Out of memory errors
  • Reduce batch size in workflow
  • Use smaller models
  • Ensure sufficient VRAM (8GB minimum)

📄 License

This Docker image packages ComfyUI with ROCm support. ComfyUI is licensed under GPL-3.0.

🤝 Contributing

Found an issue or want to contribute? Visit our GitHub repository to:

  • Report bugs
  • Suggest improvements
  • Submit pull requests
  • Share your AMD GPU test results

📄 License & Credits

This project is licensed under GPL-3.0.

Third-Party Components
  • ComfyUI: GPL-3.0 - ComfyUI
  • PyTorch: BSD 3-Clause - PyTorch
  • ROCm: Various OSS licenses - AMD ROCm

🙏 Acknowledgments

  • ComfyUI - The amazing node-based UI
  • AMD ROCm - Open source GPU computing platform
  • ROCm community for AMD GPU AI support
查看更多 comfyui-rocm 相关镜像 →
rocm/rocm-terminal logo
rocm/rocm-terminal
ROCm-Docker:用于构建Radeon Open Compute Platform软件层为可移植Docker镜像的框架,包含依赖说明、快速启动指南及容器管理命令。
20100K+ pulls
上次更新:未知
rocm/k8s-device-plugin logo
rocm/k8s-device-plugin
Kubernetes (k8s)设备插件,用于将AMD GPU注册到容器集群中,支持计算工作负载调度
75M+ pulls
上次更新:未知
rocm/tensorflow logo
rocm/tensorflow
支持ROCm后端的Tensorflow
86100K+ pulls
上次更新:未知
rocm/pytorch logo
rocm/pytorch
基于ROCm的PyTorch Docker镜像为开发者提供了预配置的深度学习环境,集成了PyTorch框架与AMD ROCm开源计算平台,支持AMD GPU硬件加速,无需手动配置驱动及库依赖,可直接用于深度学习模型的开发、训练与部署,有效简化环境搭建流程,确保跨平台一致性,适用于科研机构、工业界等多种场景,助力高效利用AMD硬件资源开展AI相关任务。
118500K+ pulls
上次更新:未知
rocm/sgl-dev logo
rocm/sgl-dev
AMD构建的sgl-dev容器,提供统一的预配置开发环境,适用于基于AMD技术栈的项目开发。
3500K+ pulls
上次更新:未知
rocm/vllm-ci logo
rocm/vllm-ci
该仓库用于托管vllm项目持续集成(CI)流程所需的镜像,旨在为vllm-ci相关的自动化构建、测试及部署环节提供稳定的镜像存储与管理支持,确保CI流程高效、可靠地运行,满足vllm项目在开发迭代过程中对集成环境的镜像需求,助力项目快速验证代码变更、保障软件质量。
4500K+ pulls
上次更新:未知

轩辕镜像配置手册

探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式

登录仓库拉取

通过 Docker 登录认证访问私有仓库

Linux

在 Linux 系统配置镜像服务

Windows/Mac

在 Docker Desktop 配置镜像

Docker Compose

Docker Compose 项目配置

K8s Containerd

Kubernetes 集群配置 Containerd

K3s

K3s 轻量级 Kubernetes 镜像加速

Dev Containers

VS Code Dev Containers 配置

MacOS OrbStack

MacOS OrbStack 容器配置

宝塔面板

在宝塔面板一键配置镜像

群晖

Synology 群晖 NAS 配置

飞牛

飞牛 fnOS 系统配置镜像

极空间

极空间 NAS 系统配置服务

爱快路由

爱快 iKuai 路由系统配置

绿联

绿联 NAS 系统配置镜像

威联通

QNAP 威联通 NAS 配置

Podman

Podman 容器引擎配置

Singularity/Apptainer

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 错误时,表示流量已耗尽,需要充值流量包以恢复服务。

410 错误问题

通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。

manifest unknown 错误

先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。

镜像拉取成功后,如何去掉轩辕镜像域名前缀?

使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。

查看全部问题→

用户好评

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

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
corundex/comfyui-rocm
官方博客Docker 镜像使用技巧与技术博客
热门镜像查看热门 Docker 镜像推荐
一键安装一键安装 Docker 并配置镜像源
咨询镜像拉取问题请 提交工单,官方技术交流群:1072982923
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
咨询镜像拉取问题请提交工单,官方技术交流群:
轩辕镜像面向开发者与科研用户,提供开源镜像的搜索和访问支持。所有镜像均来源于原始仓库,本站不存储、不修改、不传播任何镜像内容。
官方邮箱:点击复制邮箱
©2024-2026 源码跳动
官方邮箱:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.