aboutsummaryrefslogtreecommitdiff
path: root/Stable Diffusion Docker.md
blob: 521f6547f1752eb80d1ce113dd944cd77d765e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Stable Diffusion Docker

## Run

1. When running for the first time: `docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -v $HOME/dockerx:/dockerx ubuntu:latest`.
2. When running again:
    1. Identify exited container: `docker container ls -a`.
    2. Restart the container: `docker container restart <container-id>`.
    3. Attach to it with bash: `docker exec -it <container-id> bash`.
3. Cd into the `stable-diffusion-webui-gfx803` folder, if you are not already in it.
4. Source the venv: `source venv/bin/activate`.
5. Launch the main script: `python launch.py --precision full --no-half`.