basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 467 forks source link

Run docker compose up get error: nvidia-container-cli: initialization error: load library failed: libnvidia-ml.so.1: #199

Open FreeBlues opened 1 year ago

FreeBlues commented 1 year ago

I can not install the "NVIDIA Container Toolkit" to my macOS(intel chip) on the 1st step "1 Install Docker, Docker Compose plugin, and NVIDIA Container Toolkit".

Any other done and success, but when I run the command "docker compose up", it returns the error:

" (venv) (base) ppt@MacBook-Pro stable-diffusion-optimizedSD-docker % docker compose up [+] Running 1/0 ⠿ Container stable-diffusion-optimizedsd-docker-sd-1 Created 0.1s Attaching to stable-diffusion-optimizedsd-docker-sd-1 Error response from daemon: 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 (venv) (base) ppt@MacBook-Pro stable-diffusion-optimizedSD-docker % "

Any of you have the same problem? thanks.