diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-03-16 14:04:07 +0100 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2022-03-30 14:09:17 -0400 |
commit | d2b26ac8a01539dd3b729698955f4f064cd052d5 (patch) | |
tree | 4977cf0d04d4352d5c1186398587ffb12e695d47 /pkg/specgen | |
parent | e01d9680ce5de8153ad44611f6444a353a5b26da (diff) | |
download | podman-d2b26ac8a01539dd3b729698955f4f064cd052d5.tar.gz podman-d2b26ac8a01539dd3b729698955f4f064cd052d5.tar.bz2 podman-d2b26ac8a01539dd3b729698955f4f064cd052d5.zip |
podman create: building local pause image: do not read ignore files
Make sure to ignore local {container,docker}ignore files when building a
local pause image. Otherwise, we may mistakenly not be able to copy
catatonit into the build container.
Fixes: #13529
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'pkg/specgen')
-rw-r--r-- | pkg/specgen/generate/pod_create.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/specgen/generate/pod_create.go b/pkg/specgen/generate/pod_create.go index 68fda3ad7..279507f4c 100644 --- a/pkg/specgen/generate/pod_create.go +++ b/pkg/specgen/generate/pod_create.go @@ -56,6 +56,7 @@ ENTRYPOINT ["/catatonit", "-P"]`, catatonitPath) CommonBuildOpts: &buildahDefine.CommonBuildOptions{}, Output: imageName, Quiet: true, + IgnoreFile: "/dev/null", // makes sure to not read a local .ignorefile (see #13529) IIDFile: "/dev/null", // prevents Buildah from writing the ID on stdout } if _, _, err := rt.Build(context.Background(), buildOptions, tmpF.Name()); err != nil { |