-
Notifications
You must be signed in to change notification settings - Fork 785
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
Match docker behavior for ADD
and COPY
with globs if no file matches
#5742
Comments
Yeah, this one's a surprise. Note to self: need to check if the |
A friendly reminder that this issue had no activity for 30 days. |
@nalind What should we do with this one? Is there a difference between docker with and without buildkit? |
@rhatdan yes, depending on whether I set DOCKER_BUILDKIT to 0 or 1, this may or may not produce an error: mkdir /tmp/glob; (echo FROM scratch; echo 'COPY b* .') > /tmp/glob/Dockerfile
docker build /tmp/glob |
Since we only want to match BUILDKIT, behavior, I take it Buildkit ignores no match? |
I tend to prefer offering an API toggle for the sake of tools that use us as a library. In this case, in my experience, if the source does not include any characters which would be treated as special (e.g., replace |
Hi I'm having the same problem while trying to copy files that my not exists |
Trying to build with this
Dockerfile
:Describe the results you received:
Describe the results you expected:
Match current Docker behavior: COPY should not fail if there is not at least one file to copy.
Output of
rpm -q buildah
orapt list buildah
:buildah-1.37.1-1.fc40.x86_64
Output of
buildah version
:The text was updated successfully, but these errors were encountered: