-
Notifications
You must be signed in to change notification settings - Fork 286
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
Unable to build from Dockerfile #2444
Comments
Are you able to post your dockerfile by any chance? |
@kimjeff49 My dockerfile is already there, it's pretty simple because it just a simple testing. This dockerfile is working on Mac or Linux container on Docker for Windows. However, my work machine has the customise version of Windows 10 which disable lots of feature. This make the machine not able to share drive with Linux container on Docker for Windows. So the only way to mount my project code into docker container is using Windows container on Docker for Windows. And here come the problem that I am not able to build the image with my Dockerfile. |
Hello, I have the same problem who could solve it? Tell me please |
@AlinaPenkina I finally figure out that my company disable a service on the Windows 10 called Server. And this service control the file sharing function on Windows 10. To check this, search "Service" on your windows, and find Server on the Service manager. If it shows disabled, right click on it and select properties. Change disabled to Automatically should solve the problem. You might need super admin authorisation with your account to do this. Also, confirm with your security team see if they disable it automatically. In my case, our security team will scan each of the working machine daily and turn the service off. If that is your case, ask them to remove you from the scan list, or you need to turn it back manually. |
@aj120426394 - I'm getting this issue but the Server service is running, so I think there's another problem going on here. |
Hi Guys Hope it help you guys |
If you are running LCOW and trying to build/run Linux containers then try to add |
So after adding --platform=linux COPY and ADD worked fine? Actually, I don't see an added value for a windows container when dealing with Unix machines. |
I haven't a chance to try it so I don't know yet. I read about this workaround in another issue (but I lost the link). |
This worked like a charm. Thank you. |
Maybe it's fixed 18.09 release because it contains this fix: moby/moby#37563 |
Issues go stale after 90d of inactivity. Prevent issues from auto-closing with an If this issue is safe to close now please do so. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
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
Run
docker build .
and it will build the imageActual behavior
Run
docker build .
Information
This dockerfile is working on Mac or Linux container on Docker for Windows. However, my work machine has the customised version of Windows 10 which disable lots of features. This make the machine not able to share drive with Linux container on Docker for Windows. So the only way to mount my project code into docker container is using Windows container on Docker for Windows.
Steps to reproduce the behavior
docker build .
The text was updated successfully, but these errors were encountered: