x11docker
x11docker copied to clipboard
Pass --device option to podman
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?
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