-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cli with buildkit will ignore dockerignore's check #1938
Comments
@tao12345666333 i'm curious to know what the usecase is for relying on the failure. |
@tiborvass the problem looks to be that a user has a |
yep. when I build image without buildkit enabled, it will failed and return permission denied. |
I believe this is very inconsistent in old builder. Files in context ignores permission error and .dockerignore does not. So I guess this is completely accidental behavior. Buildkit standardizes this and uses the same code for all the files without exceptions. |
If this is expected behavior, then I can close this issue, thank you very much! |
Description
docker CLI with builkit enabled will ignore .dockerignore file's read errors.
Steps to reproduce the issue:
Describe the results you received:
Build image successfully.
Describe the results you expected:
Build image failed.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: