我可以在没有-v选项的docker中挂载一个windowsnetworkingpath吗?
我可以在我的家乡path的泊坞窗外的Ubuntu(14.04)机器上安装一个窗口位置。
sudo mount -t cifs -o username=myuser,password="mypass" /\/\my_win_machine/\test /net/win_share/
我可以在我的Ubuntu机器上的'/ net / win_share'位置看到windows机器中存在的所有文件。
现在我在使用Ubuntu 14映像的Docker容器中尝试了同样的事情。
我做了以下:
docker run --name="raji" -it ubuntu:14.04 bash #adduser myuser
它在容器中创build了用户,我也把它添加到sudo组中
然后我做了以下:
sudo mount -t cifs -o username=myuser,password="mypass" /\/\my_win_machine/\test /net/win_share/
它会抛出错误:
mount: block device //my_win_machine/test is write-protected, mounting read-only mount: cannot mount block device //my_win_machine/test read-only
在docker里面可以做上面的事吗?