How to Change Docker Runtime from NVIDIA to runc?

0
7
Asked By TechyNinja42 On

I installed `nvidia-container-runtime` on an Ubuntu fork to enable hardware acceleration for Nextcloud running inside Docker containers. However, I'm facing issues and want to remove the NVIDIA runtime. I've modified the daemon.json file to switch to runc and even tried using youki, but the runtime hasn't changed. I attempted to pass the runtime directly to the container, yet it still behaves as if the NVIDIA runtime is active. I also checked the Docker systemd unit file, and it doesn't indicate any runtime changes. As a result, I'm unable to start my Nextcloud Docker containers due to this NVIDIA runtime issue. What am I missing?

4 Answers

Answered By DockerGuru27 On

It seems like you might be running into a runtime configuration issue. Can you provide the command you're using to start the Nextcloud container? Sometimes context settings can affect which runtime Docker is using.

Answered By CloudEnthusiast88 On

Make sure to check that the command you're using is right. From what I can see, the error `unknown or invalid runtime name: nvidia` suggests Docker is still trying to use that NVIDIA runtime instead of the one you configured. Verify changes in your daemon.json are reflected properly!

Answered By SupportSavvy2 On

It could be an issue with how you modified your Docker configuration. Make sure you restarted the Docker service after making changes to daemon.json. You can do this with `sudo systemctl restart docker`. This is often required for changes to take effect.

Answered By CodeCrafter99 On

First, can you tell me how you're starting the Nextcloud container? Is your Docker client functioning properly? You can check the situation with `docker context show` to ensure everything is set right.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.