-
Notifications
You must be signed in to change notification settings - Fork 977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to Find libnvidia-ml.so.1 When Using "docker compose linux-gpu up" #95
Comments
If the container What seems here to be the issue here is your Nvidia runtime integration with Docker. Are you able to run this command successfully?
If not try to reinstall Docker. |
@matthieuml , I've faced the same issue and tried the command you've proposed. The error in the result is the same as I see when run GenAI stack with #…
docker: 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. I have also followed your advice from #62 (installed The main hint here seems that I run the stack in Docker Desktop 4.26.1 (on Ubuntu 23.10). The
Some reported issues that I've found in the net so far suggest to use Docker CE instead of Docker Desktop. But it looks opposite to what GenAI stack promotes — the easy and developer-friendly way to build LLM-powered applications. Is there other way to resolve the issue? |
After looking a bit around, it seems that nvidia-container-toolkit needs docker-ce installed as root to work (which isn't the case with Docker Desktop?). The obvious way to resolve this issue would be to use docker-ce installed as root or even podman as an alternative. The Docker CLI is well documented and in combination with docker-compose you can deploy the stack quite easily. However, if you want to keep a developer-friendly UI, maybe you could use portainer-ce in combination with docker-ce as root? |
Yes, this seems to be the root cause. Ok, I'll switch to Docker CE. Perhaps, it's worth adding a note about Docker Desktop incompatibility with Thank you! |
The Issue is in like in system packageI am using |
@Toparvion |
@suveerudayashankara Can you please share your host machine operating system and version of docker and docker engine? |
@suveerudayashankara If you are using linux, please also install support packages in docker for nvidia drivers, I hope that solves your issue. |
@suveerudayashankara , yes, I followed the above advice to switch from Docker Desktop to Docker CE (+Portainer) and it worked for me. |
Here is the result of my command. Is this error inside the container or outside? The weird part to me is:
genai-stack-pull-model-1 | pulling ollama model llama2 using http://llm-gpu:11434
The docs told me to add that URL to the .env file. However, I certainly don't have server running there.
The text was updated successfully, but these errors were encountered: