-
Notifications
You must be signed in to change notification settings - Fork 2k
host volumes not working with vmwarefusion driver #641
Comments
This is a known issue. It's being worked on. |
This causes all sorts of strange behaviour upstream when you don't expect it. Is there a good place to document this? I spend several hours tracing this back because I thought Docker Compose was broken. |
+1 |
+1 |
+1 Agreed this should be documented; I also spent a fair bit of time trying to figure out if I was doing something wrong since no error was given and the missing feature isn't documented. |
So, this is rather an important issue... Is anyone working on it? |
This is pretty much a dupe of #13 |
+1, and even though Machine is in beta, it might be nice to have a list of which drivers support host volumes in the documentation. |
I spend several hours tracing this back because I thought Docker Compose was broken. [2] |
+1 thanks very much |
AFAIK only Virtualbox supports mounting local volumes through the shared folders feat. we expect to have the same feature on Fusion with Docker 1.7.0 as B2D has to move to a 64bit userspace for shared folders to work with Fusion. see boot2docker/boot2docker#747 and boot2docker/boot2docker#748 |
@frapposelli does shared folder support work with the VMWare Fusion driver in Docker 1.5/1.6 if it's run against the b2d image on your VMWare 64-bit branch (https://github.com/frapposelli/boot2docker/tree/vmware-64bit)? |
@parknicker yes it does, the branch is still in flux but has been tested on 1.5.0 and it's the one I use daily to build stuff. Note that you'll have to mount |
This PR adds shared folders support for Fusion #1034 |
I've rebased the 64 bit boot2docker in #854 - lets see if we can get this merged for testing soon :) |
I just gave this another try with Compose This is the command I used: docker-machine create --driver vmwarefusion --vmwarefusion-boot2docker-url https://github.com/boot2docker/boot2docker/releases/download/v1.6.2/boot2docker.iso --vmwarefusion-memory-size 4096 lmpm |
After some digging around, I came across @SvenDowideit's iso here: https://github.com/SvenDowideit/boot2docker/releases/tag/x64rc1 After rebuilding with that image, everything now seems to be working! 🍻 |
@adambiggs does Sven's release enable support for mounted volumes in all cases (Virtualbox, Digital Ocean etc) or just with Fusion? |
@Rodeoclash I’ve only tested with fusion. |
@Rodeoclash the local shared directory support is only for local providers (VirtualBox, VMware Fusion) |
Ok I've been testing with the above mentioned setup and have run into another problem... Shared volumes show up inside containers, and files can be read as expected, but writing to a file causes it to become corrupted. The contents show up as empty. Should I open a different issue for this? |
I was able to reproduce this from inside boot2docker by editing the same files inside the Seems like maybe a |
@adambiggs yeah we've seen the same issue (#1275). |
+1! |
If you use the the latest "rc2" of machine and compile your own boot2docker from master this is resolved. Just waiting for official release. |
FYI you can also use the b2d RC candidates here: https://github.com/tianon/boot2docker/releases |
So... B2D 1.7 was released - should this issue be closed now? |
Yes this is now working for me. |
🎉 |
I don't know if this is related, but I have an issue where if the size of my file does not change, then it doesn't get copied to the guest. As far as I can tell, it has to do with the |
This seems to still be an issue for me. Docker version 1.8.3, build f4bf5c7 Inside
should have these files:
|
@dallas can you please open a new issue and CC me? Shared folders support has changed dramatically since this issue was worked on. Make sure to include a |
Perhaps I should also mention this is all on a brand new MacBook Pro running El Capitan. VMware Fusion version 8.0.1 (3094680). I had initially downloaded and install the Docker Toolkit with VirtualBox and then later added VMware Fusion at which point I completely uninstalled Docker (using this script: https://github.com/docker/toolbox/blob/master/osx/uninstall.sh) and VirtualBox (by manual file deletion) and then reinstalled the Docker tools listed above using Homebrew. |
Will do. Thanks, @frapposelli! |
I am getting the same issue as @dallas. I'm on 10.10 though. Tried with both fusion 7 and fusion 8. |
@aventurella see #1995 |
@frapposelli yup.. sorry I was literally just in 1995 and started building it and I was about to come back here and edit my last comment to see #1995 =) |
I just tried using
docker-machine
v0.1.0 with VMWare Fusion 7.1.1, but whenever I try to mount a host volume inside a container, the volume shows up empty...The text was updated successfully, but these errors were encountered: