Table of Contents

AbdBarho’s stable-diffusion-webui-docker can execute AUTOMATIC1111’s stable-diffusion-webui on a docker container.

Merits:

  • Keep my Windows PC environment clean (no need to install git or python directly on my PC)

Preparation:

  1. Install the appropriate NVIDIA Graphics Driver on a Windows PC with a Nvidia GPU.
  2. Install wsl2 on the Windows PC (see Microsoft’s official document).
  3. Install NVIDIA Container Toolkit on a WSL distribution.
  4. Install Docker Desktop on the Windows PC (Enable WSL integration).

Execute commands in WSL:

git clone https://github.com/AbdBarho/stable-diffusion-webui-docker.git

cd stable-diffusion-webui-docker

docker compose --profile download up --build

docker compose --profile auto up --build

Then access http://localhost:7860/ in a web browser.