Encountered errors while bringing up the project

梦想与她 提交于 2019-12-01 13:36:27

It might be this Windows specific behavior/bug https://stackoverflow.com/a/43767642/89769

(Guess from the path in the error message)

It is shared drive issue, could be solved by following steps. My example are based on Docker on windows, and Symantec Endpoint Protection as firewall.

  1. Mount to other directories

    Please follow setup steps on Docker on windows or quickstart, when you need mount directories outside C:\Users on Win 10.

  2. Turn off firewall

    Type follow command in Windows 10 search window to turn off SEP

smc -stop

Re-enable firewall by

smc -start

  1. Check standard shared drive works

Docker provide sample check command under Shared Drives tab

docker run --rm -v c:/Users:/data alpine ls /data

If the command output is empty then there are set up issue, because C:\Users is no way be empty.

To reapply shared drives you can use either way

A. Reapply shared drives by uncheck `Shared` in Shared Drives Tab, then click [Apply] button
B. Reset credentials, you need retype user id and password setup on step 1

4. Check shared drive outside C:\Users For example, my directory is C:\Proj\GitHub then

docker run --rm -v c:/Proj/GitHub:/data alpine ls /data

If output is empty then it is a Windows authorization issue. The Administrator role may not enough to access the directory by setup in step 1. You need shared to user ID by File Explorer. Click the directory and show context menu by click right button. Choice Give access to>Specific people, then grant to user id defined in step 1.

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