-
Notifications
You must be signed in to change notification settings - Fork 481
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
After upgrade to 24.0.0 (and factory reset) docker build is now case sensitive - needs 'Dockerfile' errors with 'dockerfile' #406
Comments
I'm not sure what the intended behaviour is but this is a an undocumented change in behaviour. |
Thanks for the report, @allanbarklie, but I wonder if I could ask you to file it in moby/moby? The command line tools are just an upstream for us, which we bundle. Sorry, I would just move the ticket but I can't because the target is not in the docker org. |
@stephen-turner Thanks for taking the time to look at this . I'd like to confirm, your releases notes say Docker Desktop now enables BuildKit by default after a reset to factory defaults. To revert to the old docker build experience, go to Preferences > Docker Engine and then disable the BuildKit feature. |
@allanbarklie Actually, that's a good point. You can check whether that's the cause by changing back to the old build in the way described. If it is in buildx but not legacy build, I can move this ticket to docker/buildx. |
@stephen-turner thanks - I can confirm that the problem occurs with and does not occur with "features": { |
Great, thanks, so I guess buildkit has regressed the earlier fix you mentioned in moby/moby#10807. |
Fixed by #444 |
Expected behavior
Docker image is built using either a file called 'Dockerfile' or 'dockerfile' when a command is typed as:
docker build .
Actual behavior
Docker build command returns an error if the dockerfile is called 'dockerfile' e.g.
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount825383798/Dockerfile: no such file or directory
Workaround:
docker build -f dockerfile .
Information
Windows Version: 10.0.19041 Build 19041
Docker Desktop Version: 24.0.0
Are you running inside a virtualized Windows e.g. on a cloud server or on a mac VM: No
Is it reproducible? Yes
Is the problem new? yes
Did the problem appear with an update? Yes 24.0.0
A reproducible case if this is a bug, Dockerfiles with reproduction inside is best.
Any dockerfile using the name 'dockerfile' all lower case
Steps to reproduce the behavior
failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount582525092/Dockerfile: no such file or directory
I found this old issue:
moby/moby#10807
The text was updated successfully, but these errors were encountered: