docker_024_ubuntu上挂载网络路径

1. 在linux上 挂载一个window7目录

mount -t cifs -o username='root',password='root' //192.168.0.241/sus /home/fantiejun/idealApp/241_sus/

 

2. 通过修改fstab文件,支持开机自动挂载

修改/etc/fstab文件,文件最后加入:

//192.168.1.100/workspace   /mnt/share cifs  auto,username=‘echo’,password=‘123456’  0 0

posted on 2016-09-02 14:35  fantiejun0436  阅读(116)  评论(0)    收藏  举报

导航