ComfyUI-Nvidia-Docker
Docker 应用程序 from martial's Repository
概述
ComfyUI WebUI Dockerfile with Nvidia support, installing ComfyUI from GitHub.
Also installs ComfyUI Manager to simplify integration of additional custom nodes.
The "run directory" contains HF, ComfyUI and venv.
The "basedir" contains input, output and custom_nodes.
The ComfyUI "Manager" is installed to simplify integration of additional custom nodes and their updates.
The "Manager" is also used to update ComfyUI to more recent versions.
All those folders will be created with the WANTED_UID and WANTED_GID parameters (by default using Unraid's default of 99:100) allowing the end-user to place directly into the folders their checkpoints, unet, lora and other required models.
The container comes with no weights/models; you need to obtain those and install them in the proper directories under the mount you have selected for the "run directory".
Output files will be placed into the basedir/output folder within the "basedir" directory.
Please see https://github.com/mmartial/ComfyUI-Nvidia-Docker for further details.
- Recommending setting USE_UV to true to use uv instead of pip
- See details about "latest" tag
- See details about "First time use" (and the "bottle" workflow), noting that Unraid's default YOUR_BASE_DIRECTORY should be /mnt/user/appdata/comfyui-nvidia/basedir
- GTX 10xx users should use the ubuntu22_cuda12.6.3-latest tag and check the README.md for recommendations on how to run the container.
- RTX 50xx (Blackwell) users should use at minimum ubuntu24_cuda12.8-latest tag.
Note:
- The container requires the Nvidia Driver plugin to be installed on your Unraid server. Usually that plugin will get you access to a CUDA driver with support for the latest tag available for this container.
- This is a WebUI for the ComfyUI Stable Diffusion tool with a Docker image of usually over 4GB.
- The container will take a while to start up, as it needs to download the ComfyUI Stable Diffusion tool and install its dependencies, usually adding another 5GB of downloaded content in the venv folder
- The original Docker image is from Nvidia, as such it is governed by the NVIDIA Deep Learning Container License.
- There are multiple version of the base image available, please select the one that fits your needs best. The name of the tag is the Ubuntu version followed by the CUDA version. Latest is set to point to the most recent combination as it should include the most recent software updates. For the complete list of supported versions, please see the GitHub repository
要求
Nvidia Driver plugin
运行时参数
- 网络用户界面
http://[IP]:[PORT:8188]- 网络
docker- 外壳
bash- 特权
- false
- 额外参数
--runtime nvidia --gpus all
模板配置
- 目标
- 8188
- 默认值
- 8188
- 价值
- 8188
- 目标
- /comfy/mnt
- 默认值
- /mnt/user/appdata/comfyui-nvidia/mnt
- 价值
- /mnt/user/appdata/comfyui-nvidia/mnt
- 目标
- /basedir
- 默认值
- /mnt/user/appdata/comfyui-nvidia/basedir
- 价值
- /mnt/user/appdata/comfyui-nvidia/basedir
UID to use for content in run directory
- 默认值
- 99
- 价值
- 99
GID to use for content in run directory
- 默认值
- 100
- 价值
- 100
Use uv instead of pip
- 默认值
- false
- 价值
- false
Use new ComfyUI Manager
- 默认值
- true
- 价值
- true
Enable legacy UI for ComfyUI Manager
- 默认值
- false
- 价值
- false
Extra command-line options for ComfyUI
Base directory for ComfyUI user directories such as models, input, output and custom_nodes
- 默认值
- /basedir
- 价值
- /basedir
Modify the security level for the WebUI, see https://github.com/ltdrdata/ComfyUI-Manager?tab=readme-ov-file#security-policy for authorized values
- 默认值
- normal
- 价值
- normal
Force change directory ownership as the comfy user during script startup (this process might be slow). This option was added to support users who mount the run and basedir folders onto other hosts which might not respect the UID/GID of the comfy user. Enabled by default on Unraid. To disable, set to an empty value.
- 默认值
- true
- 价值
- true
Disable container start upgrades of python pacakges (also disables USE_PIPUPGRADE). All updates must be performed using ComfyUI Manager.
- 默认值
- false
- 价值
- false
new default is to use pip install --upgrade, set to false to use pip install.
- 默认值
- true
- 价值
- true
Use socat to listen on port 8188 and forward to 127.0.0.1:8181 (ie use an alternate port for Comfy to run)
- 默认值
- false
- 价值
- false
Required to be set to personal_cloud to allow custom nodes installation
- 默认值
- personal_cloud
- 价值
- personal_cloud
下载统计数据
长期下载总量
详细信息
mmartial/comfyui-nvidia-docker在Unraid 上运行 ComfyUI-Nvidia-Docker 。
ComfyUI-Nvidia-Docker 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。