<pre>
Note: If you are using Docker Machine on Mac or Windows, your Docker daemon only has limited access to your OS X/Windows filesystem. Docker Machine tries to auto-share your /Users (OS X) or C:\Users (Windows) directory - and so you can mount files or directories using docker run -v /Users/<path>:/<container path> ... (OS X) or docker run -v /c/Users/<path>:/<container path ... (Windows). All other paths come from your virtual machine’s filesystem.
</pre>
既然你都boot2docker了,不妨装个Linux,好用又方便。
2 个回复
adolphlwq - https://blog.adolphlwq.xyz
赞同来自:
看截图是在win平台运行docker。个人觉得问题有:
-v
挂载VOLUMN这里,win下的文件路径和linux的不一致<div class="aw-upload-img-list active">
<a href="http://dockone.io/uploads/answ ... ot%3B target="_blank" data-fancybox-group="thumb" rel="lightbox"><img src="http://dockone.io/uploads/answ ... ot%3B class="img-polaroid" title="test.png" alt="test.png" /></a>
</div>
(https://github.com/adolphlwq/I ... volume)
王汝平
,改成英文的吧。tuxknight
赞同来自:
<pre>
Note: If you are using Docker Machine on Mac or Windows, your Docker daemon only has limited access to your OS X/Windows filesystem. Docker Machine tries to auto-share your /Users (OS X) or C:\Users (Windows) directory - and so you can mount files or directories using docker run -v /Users/<path>:/<container path> ... (OS X) or docker run -v /c/Users/<path>:/<container path ... (Windows). All other paths come from your virtual machine’s filesystem.
</pre>
既然你都boot2docker了,不妨装个Linux,好用又方便。