-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman-pause building fails because of .dockerignore #13529
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
Thanks for opening the issue and providing a reproducer, @Darkclainer! I'll take a look. |
Opened #13530 |
vrothberg
added a commit
to vrothberg/libpod
that referenced
this issue
Mar 17, 2022
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: containers#13529 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
mheon
pushed a commit
to mheon/libpod
that referenced
this issue
Mar 30, 2022
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: containers#13529 Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 20, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Building
podman-pause
respects local .dockerignore file and can therefore fail.Steps to reproduce the issue:
podman-pause
bash -c 'podman image rm -f $(podman image list -q -f reference=localhost/podman-pause)'
podman-pause
imagepodman pod create --name test
Describe the results you received:
I got the error:
Error: building local pause image: error building at STEP "COPY /usr/libexec/podman/catatonit /catatonit": no items matching glob "/usr/libexec/podman/catatonit" copied (1 filtered out using .dockerignore): no such file or directory
Describe the results you expected:
Pod created (and
podman-pause
built)Additional information you deem important (e.g. issue happens only occasionally):
Removing .dockerignore fixes problem
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes (but didn't build from repo)
Note
There is also another problem with building
podman-pause
but it can be related to package distribution. On arch/monjaro/usr/libexec/podman/catatonit
is symlink to actual file and COPY fail with symlink in this case.The text was updated successfully, but these errors were encountered: