Stable Diffusion Docker
Run
- 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
. - When running again:
- Identify exited container:
docker container ls -a
. - Restart the container:
docker container restart <container-id>
. - Attach to it with bash:
docker exec -it <container-id> bash
.
- Identify exited container:
- Cd into the
stable-diffusion-webui-gfx803
folder, if you are not already in it. - Source the venv:
source venv/bin/activate
. - Launch the main script:
python launch.py --precision full --no-half
.