Docker toolbox: is there any way to mount other folders than from c: \ Users Windows?

I installed the docker toolbar 1.8.3 using VirtualBox 5.0.6 on Windows 7.

By default, the virtual machine created when the Docker quick launch terminal is started has one shared folder for c:\Users . Can other folders be constantly added to this virtual machine, for example. install d:\ drive on host?

+6
source share
1 answer

boot2docker README mentions

Alternatively, Boot2Docker includes added VirtualBox guest add-ons specifically designed to share the VirtualBox folder.

The first of the following common name names that exist (if any) will be automatically mounted in the specified location:

 c/Users share at /c/Users /c/Users share at /c/Users c:/Users share at /c/Users 

If any other path or shared resource is required, it can be set at runtime by doing something like:

 $ mount -t vboxsf -o uid=1000,gid=50 your-other-share-name /some/mount/location 

You can see more in VirtualBox / guest add-ons / shared folders

At the command line, you can create shared folders using VBoxManage, as shown below:

 VBoxManage sharedfolder add "boot2docker-vm" --name "sharename" --hostpath "C:\test" 
+5
source

All Articles