{"id":13405870,"url":"https://github.com/ashleykleynhans/stable-diffusion-docker","last_synced_at":"2026-03-13T08:08:06.542Z","repository":{"id":170669440,"uuid":"646863172","full_name":"ashleykleynhans/stable-diffusion-docker","owner":"ashleykleynhans","description":"Docker image for Stable Diffusion WebUI with ControlNet, After Detailer, Dreambooth, Deforum and ReActor extensions, as well as Kohya_ss and ComfyUI","archived":false,"fork":false,"pushed_at":"2026-03-05T11:34:10.000Z","size":886,"stargazers_count":71,"open_issues_count":3,"forks_count":20,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-03-05T14:49:34.652Z","etag":null,"topics":["adetailer","comfyui","controlnet","deforum","deforum-stable-diffusion","docker","dreambooth","face-swap","kohya-webui","roop","runpod","sdxl","sdxl-docker","stable-diffusion","stable-diffusion-webui"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ashleykleynhans.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"ashleykleynhans","buy_me_a_coffee":"ashleyk"}},"created_at":"2023-05-29T14:04:27.000Z","updated_at":"2026-03-05T10:41:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"daaf0ca1-5869-42ba-af8a-422fca8b9142","html_url":"https://github.com/ashleykleynhans/stable-diffusion-docker","commit_stats":null,"previous_names":["ashleykleynhans/stable-diffusion-docker"],"tags_count":190,"template":false,"template_full_name":null,"purl":"pkg:github/ashleykleynhans/stable-diffusion-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleykleynhans%2Fstable-diffusion-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleykleynhans%2Fstable-diffusion-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleykleynhans%2Fstable-diffusion-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleykleynhans%2Fstable-diffusion-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ashleykleynhans","download_url":"https://codeload.github.com/ashleykleynhans/stable-diffusion-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ashleykleynhans%2Fstable-diffusion-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30462087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T06:34:02.089Z","status":"ssl_error","status_checked_at":"2026-03-13T06:33:49.182Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adetailer","comfyui","controlnet","deforum","deforum-stable-diffusion","docker","dreambooth","face-swap","kohya-webui","roop","runpod","sdxl","sdxl-docker","stable-diffusion","stable-diffusion-webui"],"created_at":"2024-07-30T19:02:14.419Z","updated_at":"2026-03-13T08:08:06.535Z","avatar_url":"https://github.com/ashleykleynhans.png","language":"Shell","funding_links":["https://github.com/sponsors/ashleykleynhans","https://buymeacoffee.com/ashleyk","https://www.buymeacoffee.com/ashleyk"],"categories":["Shell"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Docker image for A1111 Stable Diffusion Web UI, Kohya_ss, ComfyUI and InvokeAI\n\n[![GitHub Repo](https://img.shields.io/badge/github-repo-green?logo=github)](https://github.com/ashleykleynhans/stable-diffusion-docker)\n[![Docker Image Version (latest semver)](https://img.shields.io/docker/v/ashleykza/stable-diffusion-webui?logo=docker\u0026label=dockerhub\u0026color=blue)](https://hub.docker.com/repository/docker/ashleykza/stable-diffusion-webui)\n[![RunPod.io Template](https://img.shields.io/badge/runpod_template-deploy-9b4ce6?logo=linuxcontainers\u0026logoColor=9b4ce6)](https://runpod.io/gsc?template=jqw8e1my59\u0026ref=2xxro4sy)\n\u003cbr\u003e\n![Docker Pulls](https://img.shields.io/docker/pulls/ashleykza/stable-diffusion-webui?style=for-the-badge\u0026logo=docker\u0026label=Docker%20Pulls\u0026link=https%3A%2F%2Fhub.docker.com%2Frepository%2Fdocker%2Fashleykza%2Fstable-diffusion-webui%2Fgeneral)\n![Template Version](https://img.shields.io/github/v/tag/ashleykleynhans/stable-diffusion-docker?style=for-the-badge\u0026logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjUuMywgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAyMDAwIDIwMDAiIHN0eWxlPSJlb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NDEuOTJ2LTc5Ny40MwoJCQljMC0zOC45OCwyMS4wNi03NC45MSw1NS4wNy05My45Nmw1OTAuMTctMzMwLjUzYzE4LjIzLTEwLjIxLDE4LjY1LTM2LjMsMC43NS00Ny4wOUwxNTI3Ljc1LDUzNi4zOHoiLz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTUyNC4wMSw2NjUuOTEiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K\u0026logoColor=%23ffffff\u0026label=Template%20Version\u0026color=%23673ab7)\n\n\u003c/div\u003e\n\nNow with SDXL support.\n\n## Installs\n\n* Ubuntu 22.04 LTS\n* CUDA 12.4\n* Python 3.11.14\n* Torch 2.6.0\n* xformers 0.0.29.post3\n* [Jupyter Lab](https://github.com/jupyterlab/jupyterlab)\n* [code-server](https://github.com/coder/code-server)\n* [Automatic1111 Stable Diffusion Web UI](\n  https://github.com/AUTOMATIC1111/stable-diffusion-webui) 1.10.1\n* [ControlNet extension](\n  https://github.com/Mikubill/sd-webui-controlnet) v1.1.455\n* [After Detailer extension](\n  https://github.com/Bing-su/adetailer) v25.3.0\n* [Locon extension](\n  https://github.com/ashleykleynhans/a1111-sd-webui-locon)\n* [ReActor extension](https://github.com/Gourieff/sd-webui-reactor)\n* [Deforum extension](https://github.com/deforum-art/sd-webui-deforum)\n* [Inpaint Anything extension](https://github.com/Uminosachi/sd-webui-inpaint-anything)\n* [Infinite Image Browsing extension](https://github.com/zanllp/sd-webui-infinite-image-browsing)\n* [CivitAI extension](https://github.com/civitai/sd_civitai_extension)\n* [CivitAI Browser+ extension](https://github.com/BlafKing/sd-civitai-browser-plus)\n* [Stable Diffusion Dynamic Thresholding (CFG Scale Fix) extension](https://github.com/mcmonkeyprojects/sd-dynamic-thresholding)\n* [Kohya_ss](https://github.com/bmaltais/kohya_ss) v25.2.1\n* [ComfyUI](https://github.com/comfyanonymous/ComfyUI) v0.17.0\n* [ComfyUI Manager](https://github.com/ltdrdata/ComfyUI-Manager)\n* [InvokeAI](https://github.com/invoke-ai/InvokeAI) v6.11.1\n* [inswapper_128.onnx](\n  https://github.com/facefusion/facefusion-assets/releases/download/models/inswapper_128.onnx)\n* [runpodctl](https://github.com/runpod/runpodctl)\n* [OhMyRunPod](https://github.com/kodxana/OhMyRunPod)\n* [RunPod File Uploader](https://github.com/kodxana/RunPod-FilleUploader)\n* [croc](https://github.com/schollz/croc)\n* [rclone](https://rclone.org/)\n* [Application Manager](https://github.com/ashleykleynhans/app-manager)\n* [CivitAI Downloader](https://github.com/ashleykleynhans/civitai-downloader)\n\n## Available on RunPod\n\nThis image is designed to work on [RunPod](https://runpod.io?ref=2xxro4sy).\nYou can use my custom [RunPod template](\nhttps://runpod.io/console/deploy?template=jqw8e1my59\u0026ref=2xxro4sy)\nto launch it on RunPod.\n\n## Downloading models\n\n```bash\ncd /workspace/stable-diffusion-webui/models/Stable-diffusion\nwget https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors\nwget https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0.safetensors\ncd /workspace/stable-diffusion-webui/models/VAE\nwget https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/resolve/main/sdxl_vae.safetensors\n```\n\n## Building the Docker image\n\n\u003e [!NOTE]\n\u003e You will need to edit the `docker-bake.hcl` file and update `REGISTRY_USER`,\n\u003e and `RELEASE`.  You can obviously edit the other values too, but these\n\u003e are the most important ones.\n\n\u003e [!IMPORTANT]\n\u003e In order to cache the models, you will need at least 32GB of CPU/system\n\u003e memory (not VRAM) due to the large size of the models.  If you have less\n\u003e than 32GB of system memory, you can comment out or remove the code in the\n\u003e `Dockerfile` that caches the models.\n\n```bash\n# Clone the repo\ngit clone https://github.com/ashleykleynhans/stable-diffusion-docker.git\n\n# Download the models\ncd stable-diffusion-docker\nwget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned.safetensors\nwget https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors\nwget https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/main/sd_xl_base_1.0.safetensors\nwget https://huggingface.co/stabilityai/stable-diffusion-xl-refiner-1.0/resolve/main/sd_xl_refiner_1.0.safetensors\nwget https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/resolve/main/sdxl_vae.safetensors\n\n# Log in to Docker Hub\ndocker login\n\n# Build the image, tag the image, and push the image to Docker Hub\ndocker buildx bake -f docker-bake.hcl --push\n\n# Same as above but customize registry/user/release:\nREGISTRY=ghcr.io REGISTRY_USER=myuser RELEASE=my-release docker buildx \\\n    bake -f docker-bake.hcl --push\n```\n\n## Running Locally\n\n### Install Nvidia CUDA Driver\n\n- [Linux](https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html)\n- [Windows](https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html)\n\n### Start the Docker container\n\n```bash\ndocker run -d \\\n  --gpus all \\\n  -v /workspace \\\n  -p 2999:2999 \\\n  -p 3000:3001 \\\n  -p 3010:3011 \\\n  -p 3020:3021 \\\n  -p 6006:6066 \\\n  -p 7777:7777 \\\n  -p 8000:8000 \\\n  -p 8888:8888 \\\n  -p 9090:9090 \\\n  -e VENV_PATH=/workspace/venvs/a1111 \\\n  -e JUPYTER_PASSWORD=Jup1t3R! \\\n  -e ENABLE_TENSORBOARD=1 \\\n  ashleykza/stable-diffusion-webui:latest\n```\n\nYou can obviously substitute the image name and tag with your own.\n\n### Ports\n\n| Connect Port | Internal Port | Description                   |\n|--------------|---------------|-------------------------------|\n| 3000         | 3001          | A1111 Stable Diffusion Web UI |\n| 3010         | 3011          | Kohya_ss                      |\n| 3020         | 3021          | ComfyUI                       |\n| 9090         | 9090          | InvokeAI                      |\n| 6006         | 6066          | Tensorboard                   |\n| 7777         | 7777          | Code Server                   |\n| 8000         | 8000          | Application Manager           |\n| 8888         | 8888          | Jupyter Lab                   |\n| 2999         | 2999          | Runpod File Uploader          |\n\n### Environment Variables\n\n| Variable             | Description                                      | Default                |\n|----------------------|--------------------------------------------------|------------------------|\n| VENV_PATH            | Set the path for the Python venv for the app     | /workspace/venvs/a1111 |\n| JUPYTER_LAB_PASSWORD | Set a password for Jupyter lab                   | not set - no password  |\n| DISABLE_AUTOLAUNCH   | Disable Web UIs from launching automatically     | (not set)              |\n| DISABLE_SYNC         | Disable syncing if using a RunPod network volume | (not set)              |\n| ENABLE_TENSORBOARD   | Enables Tensorboard on port 6006                 | enabled                |\n\n## Logs\n\nStable Diffusion Web UI, Kohya SS, ComfyUI, and InvokeAI each\ncreate log files, and you can tail the log files instead of\nkilling the services to view the logs\n\n| Application             | Log file                     |\n|-------------------------|------------------------------|\n| Stable Diffusion Web UI | /workspace/logs/webui.log    |\n| Kohya SS                | /workspace/logs/kohya_ss.log |\n| ComfyUI                 | /workspace/logs/comfyui.log  |\n| InvokeAI                | /workspace/logs/invokeai.log |\n\nFor example:\n\n```bash\ntail -f  /workspace/logs/webui.log\n```\n\n## Community and Contributing\n\nPull requests and issues on [GitHub](https://github.com/ashleykleynhans/stable-diffusion-docker)\nare welcome. Bug fixes and new features are encouraged.\n\n## Appreciate my work?\n\n\u003ca href=\"https://www.buymeacoffee.com/ashleyk\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 60px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashleykleynhans%2Fstable-diffusion-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fashleykleynhans%2Fstable-diffusion-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fashleykleynhans%2Fstable-diffusion-docker/lists"}