Docker environment for Fooocus
Setup has been tested on Ubuntu 22.04 LTS with Nvidia video card
Follow the instructions for your operating system https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
How to install Docker on Ubuntu
Create the docker group
sudo groupadd docker
sudo usermod -aG docker $USERReboot system to apply changes
sudo apt-get install nvidia-container-runtime
sudo systemctl restart dockerverify that you have nvidia accessible inside docker environment
docker run -it --rm --gpus all ubuntu nvidia-smigit clone https://github.com/lllyasviel/Fooocus.gitStart Fooocus by running next command
docker compose upOpen url http://localhost:7865