Docker Windows build fails with error: “The system cannot find the path specified”

半世苍凉 提交于 2019-12-03 05:49:58

I'm guessing your issue is actually not related to creating a directory junction (note that your build did complete that step), but is related to exceeding the base size of docker containers (I see you're pulling from windowsservercore, which is about 10GB, and web browsing tells me the default container base size is 10GB).

Try changing the size to 20GB in the docker daemon config by adding this json:

"storage-opts": [
  "size=20G"
]

I was experiencing the same error message, tried all manner of troubleshooting, and resolved it with that daemon setting.

I was not able to resolve this with other methods; what worked for me was deleting and re-pulling the base image. So, it is apparently possible to get this error from a corrupt image.

check if the project is Running or not ! if it is running finish it. then check the command again

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!