ComfyUI-Nvidia-Docker

ComfyUI-Nvidia-Docker

Aplicación Docker from martial's Repository

Visión general

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

Requisitos

Nvidia Driver plugin

Argumentos en tiempo de ejecución

Interfaz web
http://[IP]:[PORT:8188]
Red
docker
Concha
bash
Privilegiado
false
Parámetros adicionales
--runtime nvidia --gpus all

Configuración de plantillas

WebUI PortPorttcp
Objetivo
8188
Por defecto
8188
Valor
8188
run directory (venv, ComfyUI from git, ...)Pathrw
Objetivo
/comfy/mnt
Por defecto
/mnt/user/appdata/comfyui-nvidia/mnt
Valor
/mnt/user/appdata/comfyui-nvidia/mnt
basedir directory (models, input, output, custom_nodes)Pathrw
Objetivo
/basedir
Por defecto
/mnt/user/appdata/comfyui-nvidia/basedir
Valor
/mnt/user/appdata/comfyui-nvidia/basedir
WANTED_UIDVariable

UID to use for content in run directory

Por defecto
99
Valor
99
WANTED_GIDVariable

GID to use for content in run directory

Por defecto
100
Valor
100
USE_UVVariable

Use uv instead of pip

Por defecto
false
Valor
false
USE_NEW_MANAGERVariable

Use new ComfyUI Manager

Por defecto
true
Valor
true
ENABLE_MANAGER_LEGACY_UIVariable

Enable legacy UI for ComfyUI Manager

Por defecto
false
Valor
false
COMFY_CMDLINE_EXTRAVariable

Extra command-line options for ComfyUI

BASE_DIRECTORYVariable

Base directory for ComfyUI user directories such as models, input, output and custom_nodes

Por defecto
/basedir
Valor
/basedir
SECURITY_LEVELVariable

Modify the security level for the WebUI, see https://github.com/ltdrdata/ComfyUI-Manager?tab=readme-ov-file#security-policy for authorized values

Por defecto
normal
Valor
normal
FORCE_CHOWNVariable

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.

Por defecto
true
Valor
true
DISABLE_UPGRADESVariable

Disable container start upgrades of python pacakges (also disables USE_PIPUPGRADE). All updates must be performed using ComfyUI Manager.

Por defecto
false
Valor
false
USE_PIPUPGRADEVariable

new default is to use pip install --upgrade, set to false to use pip install.

Por defecto
true
Valor
true
USE_SOCATVariable

Use socat to listen on port 8188 and forward to 127.0.0.1:8181 (ie use an alternate port for Comfy to run)

Por defecto
false
Valor
false
NETWORK_MODEVariable

Required to be set to personal_cloud to allow custom nodes installation

Por defecto
personal_cloud
Valor
personal_cloud

Descargar estadísticas

200,761
Descargas totales
35,065
Este mes
24,456
Media / Mes

Descargas totales a lo largo del tiempo

Cargando gráfico...

Detalles

Repositorio
mmartial/comfyui-nvidia-docker
Última actualización2026-05-09
Visto por primera vez2024-09-02

Ejecute ComfyUI-Nvidia-Docker en Unraid.

ComfyUI-Nvidia-Docker se encuentra en Community Apps para Unraid OS. Explore Unraid para crear un servidor doméstico flexible, un NAS o un laboratorio doméstico.