Skip to content
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

Running --privileged and --nvidia together leads to an error #199

Open
sisaha9 opened this issue Sep 13, 2022 · 1 comment
Open

Running --privileged and --nvidia together leads to an error #199

sisaha9 opened this issue Sep 13, 2022 · 1 comment

Comments

@sisaha9
Copy link

sisaha9 commented Sep 13, 2022

Running the following command

rocker --nvidia --privileged --user -- image

results in the following error

docker: Error response from daemon: 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: mount error: file creation failed: /var/lib/docker/overlay2/ab9912469e3ad4db8cf174df0cb5d9b8619972abbc70b111e50bc395b0857480/merged/dev/nvidia-uvm: input/output error: unknown.

What could be causing this error? I have run docker containers with runtime nvidia and privileged before and never gotten this error

@tfoote
Copy link
Collaborator

tfoote commented Sep 19, 2022

There's a closely related issue here: NVIDIA/nvidia-docker#1648

There may be some interaction that triggers this only when privileged is enabled. And it could also be triggered by a specific image contents as well. I can't reproduce it using generic images like ubuntu:jammy. To be able to help any more I'd need to be able to reproduce the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants