spiegel_podman/pkg/bindings/images
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
build_test.go RUN-4538: Fix buildah vendoring 2026-04-21 14:27:58 -05:00
build_unix.go pkg/bindings/images: fix linter warning on Darwin 2025-03-31 12:27:55 -07:00
build_windows.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
diff.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
images.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
pull.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
push.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
rm.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_diff_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_exists_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_export_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_get_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_history_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_import_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_list_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_load_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_prune_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_pull_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_push_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_remove_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_scp_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_search_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_tag_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_tree_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
types_untag_options.go RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00