-
Notifications
You must be signed in to change notification settings - Fork 288
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
failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount587080174/Dockerfile: no such file or directory #8781
Comments
We're closing this issue because it doesn't contain enough information for us to investigate the problem. |
your docker file name should be "Dockerfile", i also faced same issue struggled lot of time, my file was as "dockerfile" so renamed it to "Dockerfile", then issue got resolved. |
I had this problem with the tutorial, I was running downloaded files from desktop. I moved the files to c: drive and all is well! |
This commit renames the `dockerfile`s to `Dockerfile`s because Docker 2.4 seems to have issues finding the former (ref: docker/for-win#8781).
Hi! failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount320670870/Dockerfile: no such file or directory In this case, your dockerfile´s name should be DockerFile The dockerfile needs no extension, in Windows, you can create it with notepad++ and save it as "all types (.)" You can try typing the full path of your dockerfile: docker build -t X:X O:\Users\yyy\XX |
tried all these and still not working => [internal] load .dockerignore 0.1s any ideas how to resolve this? |
Thank's it solved my issue |
^^ Thanks for this. I realized my unzip program put the code extract in downloads\app\app and my Docker file referenced \app as the directory (hence getting the failed to read message). Upon correcting it, everything is working. |
how to create a Dockerfile |
Hello, |
Hello, This is the error: Thanks. |
If you're following along in the Getting Started instructional tutorial, you should have downloaded the app. There should be an app directory. For me, I just unzipped the file into my downloads folder. Go to your code editor (I'm using Visual Code) and open the app directory. You should see the Dockerfile just under the app folder. If you don't see a Dockerfile, you're instructed to create one. |
I just logged in to Docker app and the problem solved !! |
Filename must be "Dockerfile" and file type must be "File" |
Thanks you are 100 sure i change mu file name DockerFile to Dockerfile it working |
on win 10 i had to try |
I had the same problem and this is my solution to it: After I moved one folder back to the main folder of the app I should also say that |
Please ensure you are in the correct directory where your Dockerfile is present. |
Please ensure you are in the correct directory where your Dockerfile is present. |
I have |
This worked for me . Thanks |
I had this problem in WSL. Thanks worked for me. |
@1Mark thank you solved for me . It means you have to be in the root directory where you have the Dockerfile . Sweet |
Sounds really silly, but I was also experiencing this issue and the above was not resolving. |
Please ensure you are in the correct directory where your Dockerfile is present. |
Thank you! i made the same silly mistake |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
Actual behavior
Information
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: