From 207d4a982af1cbd0cfa059e2f63472273ed1b8bd Mon Sep 17 00:00:00 2001 From: "Tisham (whatnick) Dhar" Date: Sat, 23 May 2026 22:00:10 +0930 Subject: [PATCH] Update ComfyUI image bundle Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .gitattributes | 1 + CHANGELOG.md | 6 ++++++ README.md | 14 +++++++------- source/Dockerfile | 5 +++-- 4 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfdb8b7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.sh text eol=lf diff --git a/CHANGELOG.md b/CHANGELOG.md index 32f9abb..d96f867 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Unreleased + +- Updated the bundled ComfyUI version from 0.8.2 to 0.22.2. +- Updated the bundled ComfyUI Manager version from 4.0.5 to 4.2.1. +- Updated the read me examples to describe the current tag formats without hard-coding outdated release values. + ## v0.6.3 (January 9, 2026) - This is another emergency release to fix an issue in v0.6.2 where the ComfyUI Docker image failed to build, because the build arguments for the versions of ComfyUI and ComfyUI Manager were defined before the `FROM` instruction in the Dockerfile. This only caused an issue now, because the "v" prefix in the ComfyUI version (e.g., "v0.8.2") was removed and then interpolated directly into the `git checkout` command, which led Git to fail with an error stating that the path spec "v" does not exist. The build arguments for the ComfyUI and ComfyUI Manager versions have now been moved to be defined after the `FROM` instruction in the Dockerfile. diff --git a/README.md b/README.md index f0246ae..d74e1f7 100644 --- a/README.md +++ b/README.md @@ -101,10 +101,10 @@ CUSTOM_NODES_PATH= OUTPUT_PATH= ``` -The Dockerfile uses the ComfyUI Docker image with the `latest` tag. A different tag can be specified using the `IMAGE_TAG` environment variable. Again, the image tag can be set permanently in a `.env` file. For a full list of the available image tags, please refer to the [image tags](#available-image-tags) section. Assuming you have already created a `.env` file, you can run the following command to use the `0.6.1` tag by appending the `IMAGE_TAG` variable to the existing `.env` file: +The Dockerfile uses the ComfyUI Docker image with the `latest` tag. A different tag can be specified using the `IMAGE_TAG` environment variable. Again, the image tag can be set permanently in a `.env` file. For a full list of the available image tags, please refer to the [image tags](#available-image-tags) section. Assuming you have already created a `.env` file, you can run the following command to use a specific release tag by appending the `IMAGE_TAG` variable to the existing `.env` file: ```shell -echo "IMAGE_TAG=0.6.1" >> .env +echo "IMAGE_TAG=" >> .env ``` Normally, the user inside a Docker container is `root`, which means that the files that are written from the container to the host system are also owned by `root`. To avoid this, ComfyUI Docker creates a new user inside the container. By default, running the Docker Compose file will create a user and group with the IDs `1000` and `1000`, respectively. Most Linux systems have the first user created with these IDs. If your user has different IDs, you can change them using the `USER_ID` and `GROUP_ID` environment variables. To permanently set these environment variables, you may again use a `.env` file alongside the `compose.yml` file to specify the correct IDs. You can find out your user and group IDs by running `id -u` and `id -g` in your terminal. Assuming you have already created a `.env` file, you can run the following commands to append the user and group IDs to the existing `.env` file: @@ -153,10 +153,10 @@ docker compose up --detach --force-recreate The ComfyUI Docker image is available with different tags. The available tags are: - `latest`: The latest stable version of ComfyUI Docker. This will use the latest versions of ComfyUI, ComfyUI Manager, and PyTorch available at the time of the image build. It will not always use the most recent version of CUDA and cuDNN, but may instead use a slightly older, but more broadly compatible version. -- `0.6`, `0.6.1`: These tags will always use the specific version of ComfyUI Docker, and the latest versions of ComfyUI, ComfyUI Manager and PyTorch available at the time of the image build. It will not always use the most recent version of CUDA and cuDNN, but may instead use a slightly older, but more broadly compatible version. -- `0.6-comfyui-0.8.2`, `0.6.1-comfyui-0.8.2`: These tags will always use the specific versions of ComfyUI Docker and ComfyUI, and the latest versions of ComfyUI Manager and PyTorch available at the time of the image build. It will not always use the most recent version of CUDA and cuDNN, but may instead use a slightly older, but more broadly compatible version. -- `0.6-comfyui-0.8.2-comfyui-manager-4.0.5`, `0.6.0-comfyui-0.8.2-comfyui-manager-4.0.5`: These tags will always use the specific versions of ComfyUI Docker, ComfyUI, and ComfyUI Manager, and the latest version of PyTorch available at the time of the image build. It will not always use the most recent version of CUDA and cuDNN, but may instead use a slightly older, but more broadly compatible version. -- `0.6-comfyui-0.8.2-comfyui-manager-4.0.5-pytorch-2.9.1-cuda-12.8-cudnn-9`, `0.6.1-comfyui-0.8.2-comfyui-manager-4.0.5-pytorch-2.9.1-cuda-12.8-cudnn-9`: These tags will always use the specific versions of ComfyUI Docker, ComfyUI, ComfyUI Manager, PyTorch, CUDA, and cuDNN. +- `.`, `..`: These tags will always use the specific version of ComfyUI Docker, and the latest versions of ComfyUI, ComfyUI Manager, and PyTorch available at the time of the image build. They will not always use the most recent version of CUDA and cuDNN, but may instead use a slightly older, but more broadly compatible version. +- `-comfyui-`: These tags will always use the specific versions of ComfyUI Docker and ComfyUI, and the latest versions of ComfyUI Manager and PyTorch available at the time of the image build. They will not always use the most recent version of CUDA and cuDNN, but may instead use a slightly older, but more broadly compatible version. +- `-comfyui--comfyui-manager-`: These tags will always use the specific versions of ComfyUI Docker, ComfyUI, and ComfyUI Manager, and the latest version of PyTorch available at the time of the image build. They will not always use the most recent version of CUDA and cuDNN, but may instead use a slightly older, but more broadly compatible version. +- `-comfyui--comfyui-manager--pytorch--cuda--cudnn-`: These tags will always use the specific versions of ComfyUI Docker, ComfyUI, ComfyUI Manager, PyTorch, CUDA, and cuDNN. - `sha-`: These tags point to ComfyUI Docker that were build from the specific commit. They will always use the versions of ComfyUI Docker, ComfyUI, ComfyUI Manager, and PyTorch that were the most recent at the time of the image build. It will not always use the most recent version of CUDA and cuDNN available at the time of the build, but may instead use a slightly older, but more broadly compatible version. > [!WARNING] @@ -230,4 +230,4 @@ docker run \ ## License -The ComfyUI Docker image is licensed under the [MIT License](LICENSE). [ComfyUI](https://github.com/comfyanonymous/ComfyUI/blob/master/LICENSE) and the [ComfyUI Manager](https://github.com/ltdrdata/ComfyUI-Manager/blob/main/LICENSE.txt) are both licensed under the GPL 3.0 license. +The ComfyUI Docker image is licensed under the [MIT License](LICENSE). [ComfyUI](https://github.com/Comfy-Org/ComfyUI/blob/master/LICENSE) and the [ComfyUI Manager](https://github.com/Comfy-Org/ComfyUI-Manager/blob/main/LICENSE.txt) are both licensed under the GPL 3.0 license. diff --git a/source/Dockerfile b/source/Dockerfile index 76d3cc2..b87a1fc 100644 --- a/source/Dockerfile +++ b/source/Dockerfile @@ -8,8 +8,8 @@ ARG CUDNN_VERSION=9 FROM pytorch/pytorch:${PYTORCH_VERSION}-cuda${CUDA_VERSION}-cudnn${CUDNN_VERSION}-runtime # Defines build arguments for the versions of ComfyUI and ComfyUI Manager to use -ARG COMFYUI_VERSION=0.8.2 -ARG COMFYUI_MANAGER_VERSION=4.0.5 +ARG COMFYUI_VERSION=0.22.2 +ARG COMFYUI_MANAGER_VERSION=4.2.1 # Installs Git, because ComfyUI and the ComfyUI Manager are installed by cloning their respective Git repositories RUN apt-get update --assume-yes && \ @@ -51,4 +51,5 @@ EXPOSE 8188 # mounted to the container and symlink the ComfyUI Manager to the correct directory; it will also create a user with the same UID and GID as the user # that started the container, so that the files created by the container are owned by the user that started the container and not the root user ADD entrypoint.sh /entrypoint.sh +RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]