Skip to content

kalazus/fooocus_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Based on https://github.com/whitehara/Fooocus

Fooocus on Docker

It's based on NVIDIA CUDA 11.8. See Dockerfile for details.

PyTorch version is 2.1. See Dockerfile for details.

Quick start

This is just an easy way for testing. Please also see Notes for using.

Clone git, Then run the docker container docker compose up --build It takes a time to build the container image. When you see a messeage Use the app with http://localhost:7865/ in the console message, you can access the URL on your browser.

Your models, outputs are stored into 'fooocus-data' volume which may be stored in '/var/lib/docker/volumes'.

Use pre-built image

The pre-built image is provided at whitehara/fooocus

You can modify 'docker-compose.yml', then docker compose up

Note: when you use the pre-built image, you need to make the 'fooocus-data' volume which permission is '777' ( all users can read/write.) before you run the container. Otherwise, you will see the permission error.

Details

Paths inside the container

Path Details
/content/app The application stored folder
/content/app/models.org Original 'models' folder.
Files are copied to the '/content/app/models' which is symlinked to '/content/data/models' every time the container boots. (Existing files will not be overwritten.)
/content/data Persistent volume mount point
/content/data/models The folder is symlinked to '/content/app/models'
/content/data/outputs The folder is symlinked to '/content/app/outputs'

Environments

You can change 'config.txt' parameters by using environments. The priority of using the environments is higher than the values defined in 'config.txt'. And they will be saved to the 'config_modification_tuorial.txt'

Docker specified environments are there. They are used by 'entrypoint.sh'

Environment Details
DATADIR '/content/data' location.
CMDARGS Arguments for entry_with_update.py which is called by entrypoint.sh

You can also use the same json key names and values explained in the 'config_modification_tutorial.txt' as the environments. See samples in the docker-compose.yml

Notes

  • Please keep 'path_outputs' under '/content/app'. Otherwise, you will see an error when you open the history log.
  • Docker on Mac/Windows has a slow volume access problem when you use "bind mount" volume. When you see this problem, don't use "bind mount". Please refer to this article for not using "bind mount".

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages