diff --git a/snippets/install/docker-notice.mdx b/snippets/install/docker-notice.mdx index 27ac1f28e..7c3f81db6 100644 --- a/snippets/install/docker-notice.mdx +++ b/snippets/install/docker-notice.mdx @@ -1,3 +1,24 @@ -**Docker:** ComfyUI does not provide an official Docker image. If you want to run ComfyUI in a container, search [Docker Hub](https://hub.docker.com) for community-maintained images. Note that **none of these are official ComfyUI images**, and they are not supported by the ComfyUI team. Use them at your own risk. +**Docker:** ComfyUI does not provide an official Docker image. If you want to run ComfyUI in a container, you can use community-maintained images from [Docker Hub](https://hub.docker.com/search?q=comfyui). Search for terms like `comfyui` or `comfy-ui` to find available images. + +Common setup steps when using a community image: +1. Map port `8188` to access the web interface +2. Ensure ComfyUI listens on `0.0.0.0` inside the container so that port mapping works from the host (most community images handle this by default) +3. Mount a volume for your models directory +4. Mount a volume for your output directory + +Example: +```bash +docker run -d \ + --name comfyui \ + --gpus all \ + -p 8188:8188 \ + -v /path/to/models:/ComfyUI/models \ + -v /path/to/output:/ComfyUI/output \ + +``` + +GPU users need `--gpus all` (requires the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html)). Note that internal container paths like `/ComfyUI/models` may differ depending on the image. Refer to your chosen image's documentation for the exact paths. + +Note that **none of these images are official ComfyUI images**, and they are not supported by the ComfyUI team. Use them at your own risk.