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

GPU Access Issue with NVIDIA JetPack 6.1 Docker Image #763

Open
kabirkedia opened this issue Jan 2, 2025 · 2 comments
Open

GPU Access Issue with NVIDIA JetPack 6.1 Docker Image #763

kabirkedia opened this issue Jan 2, 2025 · 2 comments

Comments

@kabirkedia
Copy link

Hello dusty,
Happy New Year! I’m reaching out for help with an issue we’ve encountered while using the official NVIDIA JetPack 6.1 image. Here's the image we’re using: [NVIDIA JetPack 6.1 - PyTorch](https://hub.docker.com/layers/dustynv/l4t-pytorch/r36.4.0/images/sha256-a05c85def9139c21014546451d3baab44052d7cabe854d937f163390bfd5201b).

When we run a container based on this image, everything works fine as long as it’s connected to a display and a user is logged in. However, when accessing the container via SSH, GPU access is problematic. Specifically:

  • A non-root user with the same permissions as the user outside the container cannot access the GPU.
  • GPU access works when logged in as root.

We also tested the same setup with JetPack 5.1, and this issue does not occur in that version.

If anyone has insights or suggestions on resolving this, please let me know!

Thanks,
Kabir Kedia

@dusty-nv
Copy link
Owner

Thanks @kabirkedia , admittedly have not seen this ... is the non-root user part of docker group ? Does --privileged change the behavior? I'm not sure it is the containers themselves rather than a change in the docker daemon?

@kabirkedia
Copy link
Author

Thanks for the response, @dusty-nv ! It seems the issue was related to the Docker daemon itself. Although we tried using the --privileged flag, the problem persisted.

We eventually resolved it by enabling automatic login in the Ubuntu GUI. Once that was configured, we were able to access the GPU inside the Docker container successfully.

Interestingly, this issue doesn’t occur with JetPack 35.x, which runs Ubuntu 20.04.

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

No branches or pull requests

2 participants