Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Installing as Docker image on Linux

njalooo edited this page Sep 6, 2022 · 2 revisions

This little guide covers how to easily get stable-diffusion running as a docker container through docker compose, on linux.

Prequisites

You need to have nvidia-docker, as well as docker-compose installed.

Cloning the repo

If you have git installed, just run git clone https://github.com/hlky/stable-diffusion.git. Alternatively, download the repo as a .zip, and unpack it at your desired install location.

Customizing launch options

If you want to set launch options like the optimized mode (4GB VRAM), simply edit the file ./scripts/relauncher.py in the repo, and change your desired flags to True.

running Docker-Compose

navigate into the repo-folder, so that you can see the file socker-compose.yml when you run ls.

Run the command sudo docker-compose up in your terminal. Sit back and relax.

Connecting to the GUI

In case everything works, and you are not flooded with error messages about a module or file not existing, you are set to go to try to connect to the GUI through your browser. For that simply type localhost:7860 into the Adress bar.