Sign inSign up

knotding/stable-diffusion-webui

By knotding

•Updated over 3 years ago

stable-diffusion-webui base on debian

Image
0

817

knotding/stable-diffusion-webui repository overview

This docker image is built by the following dockerfile:

FROM debian
RUN apt update \
        && apt install -y wget git python3 python3-venv python3-pip libgl1-mesa-glx libglib2.0-0\
        && rm /bin/sh && ln -s /bin/bash /bin/sh \
        && groupadd -r aiart && useradd -r -g aiart aiart \
        && mkdir /home/aiart && chown -R aiart: /home/aiart
USER aiart
WORKDIR /home/aiart
RUN git clone https://github.com/AUTOMATIC1111/stable-diffusion-webui.git \
        && sed -i 's/pip install/pip install --no-cache/g' stable-diffusion-webui/launch.py \
        && stable-diffusion-webui/webui.sh --exit --no-download-sd-model --skip-torch-cuda-test
CMD ["stable-diffusion-webui/webui.sh", "--listen"]

The image contains all the python dependencies required for running, but does not contain the graphics card driver. You need to map the so files required by the graphics card driver yourself.

To run this image you also need to configure the following directory mappings:

docker run -name stable-diffusion-webui -v <models_path>:/home/aiart/stable-diffusion-webui/models/Stable-diffusion -v <lora_path>:/home/aiart/stable-diffusion-webui/models/Lora -p 7860:7860 --gpus all --privileged knotding/stable-diffusion-webui

Please refer to Nvidia's documentation on Docker's use of GPUs.

Tag summary

Content type

Image

Digest

sha256:4a6956040…

Size

3.4 GB

Last updated

over 3 years ago

docker pull knotding/stable-diffusion-webui