-
Notifications
You must be signed in to change notification settings - Fork 2k
docker-machine created Virtualbox VM does not mount a shared volume from Centos 7 host #3234
Comments
Have created a gist containing the VBox.log and the --debug output generated during the creation of the VM with docker-machine --debug create --driver virtualbox research https://gist.github.com/dpneumo/e8567149ae9863e0c82b Looks like docker-machine create tries to mount the host's /home at a folder named "hostname" in the created VM. I would think that given the documentation concerning this that it would be attempting to mount the host folder /home/ at /home/ in the created VM. That does not appear to happen. I would also think that the failure to create the shared folder would generate an error message of some kind... Perhaps even one that helps the user solve the problem. |
Have looked at the underlying code. Though I am not a Go programmer, I think these changes would fix things for Linux hosts: In virtualbox.go:
And in virtualbox_linux.go:
Since I have no experience with Go (I work predominantly with ruby and python), I have not put this into a pull request. Some thought should be given to potential effects of these changes on Mac, Windows, and other users before committing the changes. Tests would be appropriate and I am really uncertain how those should be set up. BTW. There does not appear to be any tests of the shared drive code at present. Go looks interesting and fun. Will plan to explore further. Perhaps then could add something further to this. |
Shared folders are not supported on Linux hosts today. Unless I'm mistaken, I think this is already documented on other issues. The code on Machine's end should be functional already I think, but a change needs to be merged into upstream boot2docker/boot2docker to make it possible. You could always bake your own |
Context:
Host OS: CentOS 7
Virtualbox version: 5.0.16
docker -v: Docker version 1.10.3, build 20f81dd
docker-machine -v: docker-machine version 0.6.0, build e27fb87
VM creation (to act as docker container host for local development):
A search of the research VM's folder tree does not show any mount of the loco user's home folder within the research VM.
Contents of /etc/fstab and /etc/mtab in the created VM, research:
An Ubuntu VM created with the Virtualbox GUI Manager does in fact contain the expected shared home folder for the user.
Am I missing something that I should be doing or is this in fact a functional lack in the docker-machine app?
The text was updated successfully, but these errors were encountered: