Running Stable Diffusion custom container


Recommended Posts

Hi all! 

 

I'm looking to install this container found on GitHub: https://github.com/AbdBarho/stable-diffusion-webui-docker

Although I have some experience installing containers from CA I must admit I'm a little lost on where to start with a custom container. 

 

 I've only just gotten a GPU enabled for the likes of Plex but thought the usage for Stable Diffusion would be a fantastic addition. 

 

Are there any guides or videos I could follow to empower me to achieve this goal? 

Any advice would be appreciated! (please be gentle lol) 

Edited by Bluedevil678
  • Like 1
Link to comment
  • 2 weeks later...

Here's what I did,  hopefully this helps

 

1)  Install "Docker Compose Manager" from the app store

 

2) go into a terminal (or ssh into your box)  and make a directory for stable diffusion.   I put it on my cache drive so it was /mnt/cache

 

3) cd into that directory and type wget https://github.com/AbdBarho/stable-diffusion-webui-docker/archive/refs/heads/master.zip

 

4) unzip the resulting file  ie. unzip master.zip

 

5) go into the dir you just unzipped and type "docker compose --profile auto up --build"   That might take a while,  maybe even a few hours.  It'll

download the models to your machine.  Once it's done,  it'll say something like :  Running on local URL:  http://0.0.0.0:7860

 

6) go into a browser and  enter   yourIP:7860

 

That should do it.   The container will show up in the gui as well.

 

 

Notes:

 

  subsequent restarts won't take hours,  it'll be pretty quick

 

you probably want GPU drivers up and running before hand as well.

Edited by drbaltar
  • Like 4
Link to comment

i also got a fork of this working by doing something close to this:

 

make a folder (/mnt/user/dockers/) is what i used

cd into the folder 

 

run

docker pull hlky/sd-webui:latest

 

run

docker container run --rm -d -p 8501:8501 -e STREAMLIT_SERVER_HEADLESS=true -e "WEBUI_SCRIPT=webui_streamlit.py" -e "VALIDATE_MODELS=false" -v "${PWD}/outputs:/sd/outputs" --gpus all hlky/sd-webui:latest

 

Directions

https://sygil-dev.github.io/sygil-webui/docs/Installation/docker-guide/

Link to comment

I got it running. Here are my recommended updates:

  • I had to change the nvidia card ID, the one in the script does not match mine. Recommend changing the base to show "ALL" (without quotes). That will work with all nvidia cards.
  • I changed it into bridge mode and added an HTTP port in the script (8501). No free access to network here.
  • I changed the install links from the Dockers folder to the standard appdata. I really recommend this so its inline with all the other apps.
  • It needs an icon.
  • I cant get stable diffusion to work. Waifu diffusion works.

I'm quickly running out of memeroy on the Video card. I have a Quadro P2000 - Looks like Ill need to find something with more ram.

 

 

Link to comment
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.