- Ubuntu 22.04 LTS
- CUDA 12.1
- Python 3.10.12
- Fooocus 2.5.3
- Torch 2.4.0
- xformers 0.0.27.post2
- Jupyter Lab
- code-server
- runpodctl
- OhMyRunPod
- RunPod File Uploader
- croc
- rclone
- CivitAI Downloader
This image is designed to work on RunPod. You can use my custom RunPod template to launch it on RunPod.
Note
You will need to edit the docker-bake.hcl
file and update REGISTRY_USER
,
and RELEASE
. You can obviously edit the other values too, but these
are the most important ones.
# Clone the repo
git clone https://github.com/ashleykleynhans/fooocus-docker.git
# Log in to Docker Hub
docker login
# Build the image, tag the image, and push the image to Docker Hub
cd fooocus-docker
docker buildx bake -f docker-bake.hcl --push
# Same as above but customize registry/user/release:
REGISTRY=ghcr.io REGISTRY_USER=myuser RELEASE=my-release docker buildx \
bake -f docker-bake.hcl --push
docker run -d \
--gpus all \
-v /workspace \
-p 3000:3001 \
-p 7777:7777 \
-p 8888:8888 \
-p 2999:2999 \
-e EXTRA_ARGS="--theme dark --output-path=/workspace" \
ashleykza/fooocus:latest
You can obviously substitute the image name and tag with your own.
Connect Port | Internal Port | Description |
---|---|---|
3000 | 3001 | Fooocus |
7777 | 7777 | Code Server |
8888 | 8888 | Jupyter Lab |
2999 | 2999 | RunPod File Uploader |
Variable | Description | Default |
---|---|---|
JUPYTER_LAB_PASSWORD | Set a password for Jupyter lab | not set - no password |
DISABLE_AUTOLAUNCH | Disable Web UIs from launching automatically | (not set) |
DISABLE_SYNC | Disable syncing if using a RunPod network volume | (not set) |
PRESET | Fooocus Preset (anime/realistic) | (not set) |
EXTRA_ARGS | Specify extra command line arguments for Fooocus, eg. --theme dark |
(not set) |
Fooocus creates a log file, and you can tail the log instead of killing the service to view the logs.
Application | Log file |
---|---|
Fooocus | /workspace/logs/fooocus.log |
For example:
tail -f /workspace/logs/fooocus.log
A special word of thanks to Madiator2011 for advice and suggestions on improving these images, as well as all of the code for the code-server which was borrowed from his madiator-docker-runpod GitHub repository.
Pull requests and issues on GitHub are welcome. Bug fixes and new features are encouraged.