<?xml version="1.0"?> <Container version="2"> <Name>ComfyUI-Nvidia-Docker</Name> <Repository>mmartial/comfyui-nvidia-docker</Repository> <Registry>https://hub.docker.com/r/mmartial/comfyui-nvidia-docker</Registry> <Branch> <Tag>ubuntu24_cuda12.5.1</Tag> <TagDescription>Ubuntu 24.04 with CUDA 12.5.1 (current latest)</TagDescription> </Branch> <Branch> <Tag>ubuntu24_cuda12.6.3</Tag> <TagDescription>Ubuntu 24.04 with CUDA 12.6.3 (next release's latest)</TagDescription> </Branch> <Branch> <Tag>ubuntu22_cuda12.4.1</Tag> <TagDescription>Ubuntu 22.04 with CUDA 12.4.1</TagDescription> </Branch> <Branch> <Tag>ubuntu22_cuda12.3.2</Tag> <TagDescription>Ubuntu 22.04 with CUDA 12.3.2</TagDescription> </Branch> <Support>https://forums.unraid.net/topic/172874-support-comfyui-nvidia-docker/</Support> <Project>https://github.com/mmartial/ComfyUI-Nvidia-Docker</Project> <TemplateURL>https://raw.githubusercontent.com/mmartial/unraid-templates/main/templates/ComfyUI-Nvidia-Docker.xml</TemplateURL> <Icon>https://raw.githubusercontent.com/mmartial/unraid-templates/main/templates/img/ComfyUI-Nvidia-Docker.png</Icon> <Category>AI: MediaApp:Photos</Category> <ExtraSearchTerms>WebUI images generation Stable Diffusion</ExtraSearchTerms> <Network>bridge</Network> <Requires>**Nvidia Driver plugin**</Requires> <MyIP/> <Shell>bash</Shell> <Privileged>false</Privileged> <Overview> 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. 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.
 - 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 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
 </Overview> <Readme>https://github.com/mmartial/ComfyUI-Nvidia-Docker</Readme> <Date>2025-02-27</Date> <Changes> ### 20250320 - Added CUDA 12.6.3 image, which will be the new latest as of the next release - Added checks for directory ownership - Added FORCE_CHOWN environment variable -- used to 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. - Added libEGL/Vulkan ICD loaders and libraries, including extension to the Windows usage section related to this addition ### 20250227 - Simplified user switching logic using the comfytoo user as the default entry point user that will set up the comfy user ### 20250216 - Fix issue with empty BASE_DIRECTORY ### 20250202 - Added BASE_DIRECTORY variable ### 20250116 - Added multiple builds for different base Ubuntu OS and CUDA combinations (with independent venv) + ffmpeg into the base container for some video workflows ### 20250109 - Integrated SECURITY_LEVELS within the docker arguments + added libGL into the base container. ### 20240915 - Added COMFY_CMDLINE_EXTRA variable to allow for additional command line arguments when starting ComfyUI (ex: --fast --reserve-vram 2.0 --lowvram). Check the Docker logs if this prevents your container from starting. ### 20240810 - Initial release </Changes> <WebUI>http://[IP]:[PORT:8188]</WebUI> <ExtraParams>--runtime nvidia --gpus all</ExtraParams> <PostArgs/> <CPUset/> <DateInstalled/> <DonateText/> <DonateLink/> <Config Name="WebUI Port" Target="8188" Default="8188" Mode="tcp" Description="" Type="Port" Display="always" Required="true" Mask="false">8188</Config> <Config Name="run directory (venv, ComfyUI from git, ...)" Target="/comfy/mnt" Default="/mnt/user/appdata/comfyui-nvidia/mnt" Mode="rw" Description="" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/comfyui-nvidia/mnt</Config> <Config Name="basedir directory (models, input, output, custom_nodes)" Target="/basedir" Default="/mnt/user/appdata/comfyui-nvidia/basedir" Mode="rw" Description="" Type="Path" Display="always" Required="true" Mask="false">/mnt/user/appdata/comfyui-nvidia/basedir</Config> <Config Name="WANTED_UID" Target="WANTED_UID" Default="99" Mode="" Description="UID to use for content in run directory" Type="Variable" Display="always" Required="true" Mask="false">99</Config> <Config Name="WANTED_GID" Target="WANTED_GID" Default="100" Mode="" Description="GID to use for content in run directory" Type="Variable" Display="always" Required="true" Mask="false">100</Config> <Config Name="COMFY_CMDLINE_EXTRA" Target="COMFY_CMDLINE_EXTRA" Default="" Mode="" Description="Extra command-line options for ComfyUI" Type="Variable" Display="always" Required="false" Mask="false"></Config> <Config Name="BASE_DIRECTORY" Target="BASE_DIRECTORY" Default="/basedir" Mode="" Description="Base directory for ComfyUI user directories such as models, input, output and custom_nodes" Type="Variable" Display="advanced" Required="true" Mask="false">/basedir</Config> <Config Name="SECURITY_LEVEL" Target="SECURITY_LEVEL" Default="normal" Mode="" Description="Modify the security level for the WebUI, see https://github.com/ltdrdata/ComfyUI-Manager?tab=readme-ov-file#security-policy for authorized values" Type="Variable" Display="always" Required="true" Mask="false">normal</Config> <Config Name="FORCE_CHOWN" Target="FORCE_CHOWN" Default="yes" Mode="" Description="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." Type="Variable" Display="always" Required="false" Mask="false">yes</Config> </Container>