Making the already easy trivial, one Containerfile at a time.
Go to file
Jack L. Frost 37df3b5430 Tweaks
Signed-off-by: fbt <fbt@fleshless.org>
2023-10-24 18:53:02 +00:00
Containerfile Tweaks 2023-10-24 18:53:02 +00:00
README.md Readme 2023-10-24 18:12:15 +00:00
config.yaml Tweaks 2023-10-24 18:53:02 +00:00
init Tweaks 2023-10-24 18:53:02 +00:00

README.md

HOWTO

This targets Nvidia and Arch, and nothing else, I'm old and lazy.

This should work on anything that has an Nvidia GPU, podman, and the nvidia container toolkit (with the nvidia devices setup hook).

Note that there's currently an issue with the AUR packages for Nvidia's container toolkit. See this issue for details and a workaround.

# Build the image
podman build --no-cache . -t 'stable-diffusion-ui-server'

# Run the container
podman run -it --device nvidia.com/gpu=all --security-opt=label=disable --name stable-diffusion-ui -p 9000:9000 -v ./data:/opt/stable-diffusion-ui -e NVIDIA_DRIVER_CAPABILITIES=compute,utility localhost/stable-diffusion-ui-server

# Get to the interface
browser http://localhost:9000