AbdBarho / stable-diffusion-webui-docker

Easy Docker setup for Stable Diffusion with user-friendly UI
Other
6.33k stars 1.05k forks source link

Cannot load container on Ubuntu 24.04 #703

Open Otts86 opened 3 weeks ago

Otts86 commented 3 weeks ago

Has this issue been opened before?

Describe the bug

Which UI

auto

Hardware / Software

Steps to Reproduce

  1. docker compose --profile auto up --build
  2. Build goes well but at the end cannot launch container
  3. Error: => [auto] exporting to image 0.0s => => exporting layers 0.0s => => writing image sha256:dbc04f4494248ab5963e254c56f76a91e15d1033aa05b1ede1e91f3157413188 0.0s => => naming to docker.io/library/sd-auto:78 0.0s Attaching to webui-docker-auto-1 Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error running hook #0: error running hook: exit status 1, stdout: , stderr: Auto-detected mode as 'legacy' nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: cannot open shared object file: no such file or directory: unknown

Additional context Nvidia-SMI: 535.171.04 Driver Version: 535.171.04 CUDA Version: 12.2

Otts86 commented 3 weeks ago

Additional information, the failed library libnvidia-ml.so.1 exists in /usr/lib/x86_64-linux-gnu/ and I added that director to my $PATH but still receive same error.

iorlas commented 2 weeks ago

Same issue there

iorlas commented 2 weeks ago

Found solution - for some reason my Ubuntu instance still ran Snap version of the Docker instead of docker-ce. You need to remove snap docker, and install docker-ce if you didn't:

sudo snap remove docker --purge