x11docker icon indicating copy to clipboard operation
x11docker copied to clipboard

Pass --device option to podman

Open jgforbes opened this issue 1 year ago • 1 comments

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?

jgforbes avatar Oct 23 '23 15:10 jgforbes

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

mviereck avatar Apr 06 '24 18:04 mviereck