Open kutschkem opened 5 years ago
I think I am having the same issue except using podman
and the nvidia-container-runtime-hook
. I can run a rootless container fine as long as I do not use any uidmap
s. As soon as I do I get the following error:
E0619 08:28:25.428976 1 nvc_ldcache.c:375] could not start /sbin/ldconfig: mount operation failed: /proc: operation not permitted
There is obviously a permissions issue here somewhere caused by using uidmap
. It looks like the above is also using uidmap
.
Using uidmap
without the nvidia hook works as expected. Any thoughts much appreciated.
@garyedwards How do you make your rootless container work without uidmap
? This is a little old and I haven't worked for it for some time, but I remember the issue being permissions, I think. Do you just change permissions on the whole file system to allow arbitrary user ids?
I think I modified no-cgroups = true
in the config.toml
file as per the below issue:
https://github.com/moby/moby/issues/38729#issuecomment-463493866
@kutschkem I am getting the same error while trying to run nvidia-container-runtime in rootless mode. Were you able to resolve this issue?
@animesh-bhadouria No, sorry.
I would like to run RunC containers based on nvidia-docker rootless. But using the runtime hook I get
I tried the solution from https://github.com/moby/moby/issues/38729 of setting no-cgroups = true (as you can see from the command line), but still no progress. I do not understand whether I need additional capabilities in my runc config, or something else.
My RunC configuration looks like this: