Open nitishkumar71 opened 6 months ago
@ComradeProgrammer do you mind taking a look ?
@nitishkumar71 I noticed you are using the rootless docker, do you mind trying with normal docker ? it might be that it is not supported for rootless
the "operation not permitted" error related to cgroups indicates a permissions problem. Docker needs access to manipulate cgroup settings for proper device management and isolation. this could be rootleess docker does not have permission to access that
additionally acording to our docs https://minikube.sigs.k8s.io/docs/drivers/docker/ it is recommended to try rootless docker with "containerd" --container-runtime flag to βcontainerdβ.
so you if you have to use rootless, you might also wanna try it with containerd runtime instead
/triage needs-information /kind support
@medyagh Thanks for pointing it out. Running docker in root mode did worked. Since, GPU is only supported for docker container runtime only. Trying to use it with containerd gives proper error message.
I think use of root mode for docker should be highlighted in docs.. I can send a PR for it.
thank you for confirming, we should have guard that if user has rootless docker they should not be able to enable gpu in first place or at least give them warmnining that this is not gonna work and they need Rooted Docker
/assign
this is not gonna work and they need Rooted Docker
NVIDIA runtime is known to work with Rootless Docker: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html#rootless-mode
sudo nvidia-ctk config --set nvidia-container-cli.no-cgroups --in-place
Haven't tried with minikube though
What Happened?
I am trying to create a minikube cluster with nvidia GPU using docker driver. I have followed all the instructions mentioned into docs. On Using GPU with docker container directly it works as shown below
But when I try to create a minikube cluster with GPU support
nvidia-device-plugin-daemonset
pod is failing due to below errorCommand I am using to create Cluster and output for the same
Attach the log file
minikube_logs.txt
Operating System
Ubuntu
Driver
Docker