Docker must be installed and working.
In shell:
docker pull rocm/pytorch:rocm5.2_ubuntu20.04_py3.7_pytorch_1.11.0_navi21
docker run -it --name stable-diffusion-webui --network=host --device=/dev/kfd --device=/dev/dri \
--group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined \
-v $HOME/dev/stable-diffusion-docker:/dockerx rocm/pytorch:rocm5.2_ubuntu20.04_py3.7_pytorch_1.11.0_navi21
Alternatively, replace --network=host
with a different network if you don't want the container sharing the host's interface.