containers / buildah

A tool that facilitates building OCI images.
https://buildah.io
Apache License 2.0
7.49k stars 785 forks source link

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

Open TheFern16 opened 4 weeks ago

TheFern16 commented 4 weeks ago

$ 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: https://github.com/containers/buildah/issues/4002

Is there a known work-around because I have not found any documentation on this, the other PRs https://github.com/containers/buildah/pull/5443 & https://github.com/containers/buildah/issues/5432 about this issue was also closed. I am still experiencing this :(

nalind commented 4 weeks ago

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.