Skip to content

Instantly share code, notes, and snippets.

@si294r
Last active October 24, 2016 12:02
Show Gist options
  • Save si294r/497982eff29b55b715e6d0d861f0ed4b to your computer and use it in GitHub Desktop.
Save si294r/497982eff29b55b715e6d0d861f0ed4b to your computer and use it in GitHub Desktop.

Install cifs-utils

$ sudo apt-get install cifs-utils

Get GUID

$ id
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),110(lpadmin),111(sambashare)

Create folder /mnt/developer

$ cd /mnt/
$ sudo mkdir developer

Mount Samba Share folder

$ sudo mount //10.0.4.2/developer -t cifs -o uid=1000,gid=1000,username=developer,password=######## /mnt/developer

Created symlink

$ cd /var/www/html/
$ mkdir nas-alegrium
$ cd nas-alegrium
$ sudo ln -s /mnt/developer/ developer

Mount samba from docker container is block by docker security. Solution is commit running container to a new image, then run a new container from that image with option '--privileged', to allow docker mount remote folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment