spiegel_podman/cmd/podman/common
Ashley Cui 462b24479b Use tmp context dir when building with process substitution
Podman defaults to the directory of the Containerfile when no context dir is explicitly provided.
When running podman build with process subsituiton,  `podman build -f <(echo "FROM scratch")`,
the Containerfile path expands to `/dev/fd/<NUM>`, which makes `/dev/fd` the context dir.
When building, Buildah attempts to create an overlay mount on top of the `/dev/fd` context dir, which fails.

In these cases, use a temp context dir instead: `$TMPDIR/podman-build-context-$randnum`

Fixes: https://github.com/containers/podman/issues/28113

Signed-off-by: Ashley Cui <acui@redhat.com>
2026-05-08 10:39:38 -04:00
..
build.go Use tmp context dir when building with process substitution 2026-05-08 10:39:38 -04:00
completion.go Fix lint issue with replace reflect.Ptr with reflect.Pointer 2026-05-04 13:48:36 +02:00
completion_test.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
create.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
create_opts.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
create_test.go Fix lint issue with replace reflect.Ptr with reflect.Pointer 2026-05-04 13:48:36 +02:00
default.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
format.go ps: format labels as comma separated key=value for Docker compatibility 2026-04-30 18:04:49 +02:00
inspect.go Add artifact fallback to podman inspect command 2025-10-02 06:52:32 -04:00
netflags.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
sign.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
term.go remove github.com/buger/goterm dependency 2025-03-31 19:17:55 +02:00