Open anatoliy19 opened 1 year ago
Thanks for reporting! I think the most common cause of this is when the Dockerfile is named "dockerfile" with a lowercase "d", and it instead needs to be a capital "D". Is that the case for you?
https://github.com/docker/for-win/issues/8781#issuecomment-704962698
Thanks for reporting! I think the most common cause of this is when the Dockerfile is named "dockerfile" with a lowercase "d", and it instead needs to be a capital "D". Is that the case for you?
No, that's not the case for me - in the picture above this post you can see a screen from my Project Explorer with the capital D of Dockerfile.
Thanks! Sorry for not noticing that. Some other things I'd check when encountering this error:
DOCKER_BUILDKIT=0 docker build .
in the same directory?When trying DOCKER_BUILDKIT=0 docker build . I get:
+ CategoryInfo : ObjectNotFound: (DOCKER_BUILDKIT=0:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
This is the first time I'm gonna conteinerize app into Docker.
I'm in the same directory of the Dockerfile
Description
I get a docker error instead of containerise my app into Docker.
Diagnostics ID 16CC740A-481C-4623-B5EC-4E1881527558/20230706104735
Reproduce
1 [internal] load .dockerignore
1 transferring context: 2B done
1 DONE 0.0s
2 [internal] load build definition from Dockerfile
2 transferring dockerfile: 2B 0.0s done
2 DONE 0.0s
ERROR: failed to solve: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount2601558829/Dockerfile: no such file or directory
Expected behavior
load metadata for docker
docker version
docker info
Diagnostics ID
16CC740A-481C-4623-B5EC-4E1881527558/20230706104735
Additional Info
No response