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

Pass --device option to podman #515

Open
jgforbes opened this issue Oct 23, 2023 · 1 comment
Open

Pass --device option to podman #515

jgforbes opened this issue Oct 23, 2023 · 1 comment
Labels

Comments

@jgforbes
Copy link

The latest version of NVIDIA container toolkit uses the Container Device Interface with podman:
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/1.14.3/cdi-support.html

An example podman command line:
podman run --rm --device nvidia.com/gpu=all --security-opt=label=disable ubuntu nvidia-smi -L

How can the --device options be passed to podman as the x11docker backend?

@mviereck
Copy link
Owner

mviereck commented Apr 6, 2024

Compare x11docker --help with custom run options:

  x11docker [OPTIONS] -- CUSTOM_RUN_OPTIONS -- IMAGE [COMMAND [ARG1 ARG2 ...]]

Example:

x11docker --backend=podman -- --device nvidia.com/gpu=all -- ubuntu nvidia-smi -L

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

No branches or pull requests

2 participants