使用docker run创建一个容器时出现问题


使用docker run创建一个容器时出现如下的问,请大神来看看是什么问题?本人刚接触Docker,请指教。!
QQ截图20150822192816.png
已邀请:

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)
  • win下你的路径存在中文名王汝平,改成英文的吧。

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,好用又方便。

要回复问题请先登录注册