Running on Local - somb1/ComfyUI-Docker GitHub Wiki
🐳 Running on Local (WiP)
You can also run this Docker image locally on your machine. Use the following command:
In Powershell,
docker run -d --gpus all `
-p 3001:3000 -p 8081:8080 -p 8889:8888 `
-e ACCESS_PASSWORD="" -e TIME_ZONE=Asia/Seoul `
-e COMFYUI_EXTRA_ARGS="" -e INSTALL_SAGEATTENTION=True `
--add-host=host.docker.internal:host-gateway -v comfyui:/workspace `
--name ComfyUI sombi/comfyui:slim-torch2.8.0-cu128
📂 Persistent Storage
The -v comfyui:/workspace
option mounts /workspace
to a Docker volume named comfyui
.
This means:
- Even if you remove or recreate the container, all models, outputs, and custom files under
/workspace
are preserved.
🔑 Port Issues (Windows Fix)
If you cannot access the service (ports not opening properly), try this fix:
-
Stop NAT service:
net stop winnat
-
Restart the container:
-
If using Docker Desktop → simply restart container from Docker Desktop.
-
Otherwise (CLI):
docker start ComfyUI
-
-
Restart NAT service:
net start winnat
📂 Accessing Docker Volumes (Windows)
If you want to browse the volume contents directly in Windows Explorer, enter this path in the address bar:
\\wsl.localhost\docker-desktop\mnt\docker-desktop-disk\data\docker\volumes