-
Notifications
You must be signed in to change notification settings - Fork 145
Installing as Docker image on Linux
This little guide covers how to easily get stable-diffusion running as a docker container through docker compose, on linux.
You need to have nvidia-docker
, as well as docker-compose
installed.
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.
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
.
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.
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.