ashleykleynhans/comfyui-docker
ashleykleynhans/comfyui-docker has 60 GitHub stars and 31 forks. GitHot measured 0 stars in 24 hours and -1 in 7 days. Last checked 2026-11-15 23:10 UTC. Last push 2026-11-04.
Measured star growth
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
About
Docker image for ComfyUI: The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface.
AIREADME.md
OriginalDocker image for ComfyUI: The most powerful and modular stable diffusion GUI, api and backend with a graph/nodes interface.
Installs
Image Variants
| Image | CUDA | Python | Torch | xformers |
|---|---|---|---|---|
| cu128-py312 * | 12.8.1 | 3.12 | 2.11.0 | - |
| cu128-py311 | 12.8.1 | 3.11 | 2.11.0 | - |
| cu124-py312 | 12.4.1 | 3.12 | 2.6.0 | 0.0.29.post3 |
| cu124-py311 | 12.4.1 | 3.11 | 2.6.0 | 0.0.29.post3 |
* default image
All Images Include
- Ubuntu 22.04 LTS
- ComfyUI v0.44.0
- Jupyter Lab
- code-server
- runpodctl
- OhMyRunPod
- RunPod File Uploader
- croc
- rclone
- Application Manager 2.0.2
- CivitAI Downloader
Available on RunPod
This image is designed to work on RunPod.
There are options for both CUDA 12.4 (for non 5090 GPU types), and CUDA 12.8 (for the RTX 5090 GPU type).
There are also options for Python 3.11 and Python 3.12 for each since some ComfyUI custom nodes require Python 3.11 and don't work correctly with Python 3.12.
Click on the appropriate link below to deploy the template of your choice on Runpod.
| Runpod Template Version | Runpod Template Description |
|---|---|
| CUDA 12.4 + Python 3.11 | Template with CUDA 12.4 and Python 3.11 for non-RTX 5090 GPU types |
| CUDA 12.4 + Python 3.12 | Template with CUDA 12.4 and Python 3.12 for non-RTX 5090 GPU types |
| CUDA 12.8 + Python 3.11 | Template with CUDA 12.8 and Python 3.11 for RTX 5090 GPU type |
| CUDA 12.8 + Python 3.12 | Template with CUDA 12.8 and Python 3.12 for RTX 5090 GPU type |
Building the Docker image
[!NOTE] You will need to edit the
docker-bake.hclfile and updateREGISTRY_USER, andRELEASE. You can obviously edit the other values too, but these are the most important ones.
[!IMPORTANT] In order to cache the models, you will need at least 32GB of CPU/system memory (not VRAM) due to the large size of the models. If you have less than 32GB of system memory, you can comment out or remove the code in the
Dockerfilethat caches the models.
# Clone the repo
git clone https://github.com/ashleykleynhans/comfyui-docker.git
# Log in to Docker Hub
docker login
# Build the default image (CUDA 12.8 and Python 3.12), tag the image, and push the image to Docker Hub
docker buildx bake -f docker-bake.hcl --push
# OR build a different image (eg. CUDA 12.4 and Python 3.11), tag the image, and push the image to Docker Hub
docker buildx bake -f docker-bake.hcl cu124-py311 --push
# OR build ALL images, tag the images, and push the images to Docker Hub
docker buildx bake -f docker-bake.hcl all --push
# Same as above but customize registry/user/release:
REGISTRY=ghcr.io REGISTRY_USER=myuser RELEASE=my-release docker buildx \
bake -f docker-bake.hcl --push
Running Locally
Install Nvidia CUDA Driver
Start the Docker container
docker run -d \
--gpus all \
-v /workspace \
-p 2999:2999 \
-p 3000:3001 \
-p 7777:7777 \
-p 8000:8000 \
-p 8888:8888 \
-e JUPYTER_PASSWORD=Jup1t3R! \
-e EXTRA_ARGS=--lowvram --disable-xformers \
ashleykza/comfyui:latest
You can obviously substitute the image name and tag with your own.
Ports
| Connect Port | Internal Port | Description |
|---|---|---|
| 3000 | 3001 | ComfyUI |
| 7777 | 7777 | Code Server |
| 8000 | 8000 | Application Manager |
| 8888 | 8888 | Jupyter Lab |
| 2999 | 2999 | Runpod File Uploader |
Environment Variables
| Variable | Description | Default |
|---|---|---|
| JUPYTER_LAB_PASSWORD | Set a password for Jupyter lab | not set - no password |
| DISABLE_AUTOLAUNCH | Disable application from launching automatically | (not set) |
| DISABLE_SYNC | Disable syncing if using a RunPod network volume | (not set) |
| EXTRA_ARGS | Specify extra command line arguments for ComfyUI, eg. --lowvram, --disable-xformers etc |
(not set) |
Logs
ComfyUI creates a log file, and you can tail it instead of killing the service to view the logs
| Application | Log file |
|---|---|
| ComfyUI | /workspace/logs/comfyui.log |
Community and Contributing
Pull requests and issues on GitHub are welcome. Bug fixes and new features are encouraged.
