ComfyUI container with NVIDIA CUDA GPU acceleration, latest official builds, and persistent storage.
541
A minimal, production-ready Docker container for running the latest ComfyUI with NVIDIA GPU acceleration (CUDA-enabled PyTorch).
This image builds ComfyUI directly from the official upstream repository at build time and is designed as a drop-in replacement runtime environment for local or server-based AI workflows.
This is not a development container with custom abstractions or modifications, nor intended for large-scale orchestration or multi-node cloud deployments. It is intended for end-users who want a clean, GPU-accelerated ComfyUI environment without the overhead of manual setup inside of a Docker container on their local machine or server.
docker run usageCUDA Toolkit is not required on the host system, as the container includes the necessary CUDA libraries for GPU acceleration.
Verify GPU support:
docker run --rm --gpus all nvidia/cuda:13.2.0-base-ubuntu22.04 nvidia-smi
Run with Docker
docker run --gpus all -p 8181:8181 \
-v comfyui:/ComfyUI \
saviornt/comfyui-nvidia-container:latest
Then open:
http://localhost:8181
🐳 Docker Compose (recommended)
services:
comfyui:
image: saviornt/comfyui-nvidia-container:latest
ports:
- "8181:8181"
volumes:
- comfyui:/ComfyUI
gpus: all
volumes:
comfyui:
This container preserves ComfyUI’s native directory structure.
All persistent data is stored in the ComfyUI root directory:
/ComfyUI
Inside this directory, ComfyUI uses the following standard folders:
/ComfyUI/models → AI models (checkpoints, SDXL, Flux, LoRAs, VAEs)
/ComfyUI/input → input images and uploads
/ComfyUI/output → generated outputs
/ComfyUI/custom_nodes → community extensions and plugins
These paths are defined by ComfyUI itself and are not modified by this container.
The Docker volume is mounted directly to /ComfyUI to ensure full compatibility with standard ComfyUI installations and workflows.
On build:
At runtime:
This container installs ComfyUI from the official upstream GitHub repository during build time.
This means:
After the container is running, users can update ComfyUI directly from the UI using ComfyUI Manager:
This will pull the latest upstream ComfyUI version into the running environment.
Users can also manually update via terminal inside the container:
cd /ComfyUI
git pull
Followed by:
pip install -r requirements.txt
/ComfyUI volume./ComfyUI)Licensed under the Apache License, Version 2.0 (the “License”);
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
Content type
Image
Digest
sha256:3817ffa42…
Size
4.9 GB
Last updated
6 months ago
docker pull davidwadsworth80/comfyui-nvidia-container