dockerignore behaving differently in podman vs docker #22910
Unanswered
thomasmattheussen
asked this question in
Q&A
Replies: 2 comments 4 replies
-
Huh. It looks like .dockerignore behavior change between the "classic" builder and the BuildKit-based one - I get the same results if I run the docker build with DOCKER_BUILDKIT=0 set in my environment. We're going to want to match the newer behavior sooner or later, though. |
Beta Was this translation helpful? Give feedback.
3 replies
-
It just does not work, do not respect
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following dockerignore which produces different results when building with podman vs building with docker.
and a directory listing such as
packages/my-theme-a/package.json
packages/my-theme-b/package.json
packages/my-theme-c/package.json
You can easily test by running this command (once with docker and once with podman)
When using docker, it does what I would expect (exclude everything except those files). When using podman, it just excludes everything. It seems as though the files I mentioned in dockerignore are somehow not matched.
I have tried several patterns such as these below but none seem to actually work.
(I'm using the latest podman 5.1.1)
Beta Was this translation helpful? Give feedback.
All reactions