Cannot load container on Ubuntu 24.04
Has this issue been opened before?
Describe the bug
Which UI
auto
Hardware / Software
- OS: Ubuntu 24.04
- OS version: Linux 6.8.0-35-generic
- Docker Version: 24.0.5
- Docker compose version: v2.20.3
- Repo version: from master
- RAM: 64GB
- GPU/VRAM: 8GB
Steps to Reproduce
- docker compose --profile auto up --build
- Build goes well but at the end cannot launch container
- 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
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.
Same issue there
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
@AbdBarho I think this can be closed especially if you place a note in the Readme advising non-snap docker.