containers/buildah

podman build unable to accept gpu's when building but works for run :(

TheFern16 opened this issue · 1 comments

$ podman run --rm --device nvidia.com/gpu=all --security-opt=label=disable ubuntu nvidia-smi -L
GPU 0: Tesla T4 (UUID: GPU-1e6d718b-e745-b765-0f63-092332c3a43a)

$ podman build --security-opt=label=disable --device=nvidia.com/gpu=all .
Error: creating build executor: getting info of source device nvidia.com/gpu=all: stat nvidia.com/gpu=all: no such file or directory

My team and I are experiencing the same issues that are referenced here: #4002

Is there a known work-around because I have not found any documentation on this, the other PRs #5443 & #5432 about this issue was also closed. I am still experiencing this :(

Please always include version information when reporting an issue. This was added in version 1.36, but I can't tell if there's a problem with the logic or in your system's configuration, or if your version of podman predates the functionality.