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.
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: