I do not want my users to have the opportunity to run their containers in privileged mode. Recently, in Docker 19.03 they introduced a rootless experimental mode. It works great, however I do not know how to combine it with a nvidia-docker extension. When I run the image with --gpus all
flag it results in an error:
docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].
ERRO[0000] error waiting for container: context canceled
Is it possible to run rootless Docker with GPU?
In /etc/nvidia-container-runtime/config.toml
under the line
[nvidia-container-cli]
add the following line:
no-cgroups = true
More Information: https://github.com/containers/libpod/issues/3659#issuecomment-543912380
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With