-
Notifications
You must be signed in to change notification settings - Fork 18.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty mount points after docker-compose up #22430
Comments
Files are available in the Can you please post the output of this command? (substitute container-id with your)
|
The default machine in VirtualBox (I started a SSH session to confirm this) nor the container see any files in /var/www/html/wp-content/themes/realsceptictsuno/. On my machine the files are in the directory F:\Workspaces\AptanaStudio3\RealScepticTsuno\build. I've linked F:\Workspaces to \workspaces in VirtualBox which if I understand the instructions correctly means I can then write an absolute path starting with /workspaces to access the files that I have in F:\Workspaces. Here's the result of the docker inspect command for the WordPress container:
For context, here's the docker-compose.yml content:
|
If I understand correctly, this is the output you see when logged in to the VM;
If that's indeed the case, then this sounds like either a VirtualBox, or configuration issue; for some reason, it looks like VirtualBox did not create / mount your |
Yes, you read that correctly. I did a restart of the VirtualBox machine and the /workspaces folder is now gone. Despite it still showing up In VirtualBox under 'Settings' -> 'Shared Folders' (Auto-mount and Make Permanent enabled). According to the VirtualBox documentation that should work. I'm getting the suspicion there's some weird interaction going on as the /c/Users mount shown right next to my /workspaces mount in the same dialogue is still there and works. That's the default mount that's used by docker for access to the local filesystem on Windows. Are there docker configuration files that I need to change to let this work properly? |
Hm, you may need to actually mount that from inside the VM. See https://github.com/boot2docker/boot2docker/#folder-sharing Also, this may be of interest to you, if you haven't yet signed up for the beta; https://blog.docker.com/2016/03/docker-for-mac-windows-beta/ If you already signed up, but didn't get a code yet, feel free to send me an email with the Docker Hub Id you used to sign up (sebastiaan at docker) |
That doesn't read like a stable feature at all... Though might still be wise to mention this info in the volume documentation for docker-compose. It would have saved me some frustration in figuring out what was going on and why it didn't work:
So for anyone finding this thread, this is what I did to get it to work:
I thought I could be clever by creating a symbolic link to my workspace. By using that I wouldn't need to worry or think about having non-standard mount points mounted in my VM. And a symbolic link does show up in the /c/Users mount but you can't do anything with it. Apparently the current set up cannot handle symbolic links. thaJeztah, thanks for the offer to let me in the beta. But at the moment it's not an option for me:
I have a Home edition of Windows 10. I do also have a Mac but this would complicate Docker usage for me as I'm setting up these environments for usage on both Macs and Windows machines. Though I'll keep an eye out for the announcement that the beta is now available for Windows Home editions (assuming this is announced on the blog). |
Good to hear you got it working; I agree that these steps should be described somewhere in the documentation. Not sure if it's part of docker-compose, but probably a section in the docker toolbox (https://github.com/docker/toolbox/tree/master/docs) or docker machine documentation (https://github.com/docker/machine/tree/master/docs). It would be awesome if someone wants to contribute that, but feel free to open an issue in the docker machine issue tracker to raise this; https://github.com/docker/machine/issues
Unfortunately, I don't expect Docker for Windows to become available for Windows 10 Home Edition, as it requires Hyper-V, which is not available in Home Edition (see the comparison matrix), unless Microsoft decides to change this. I'll go ahead and close this issue, because the original issue is resolved, and changes to the documentation should be made in the repositories mentioned, but feel free to continue the discussion. 👍 |
Completely forgot about that detail about Hyper-V support on Windows. I've created the issue so that this at least can be tracked and maybe increase discoverability of this information for anyone else encountering this. The only remark I have is that this information of course shouldn't be in the docker-compose documentation. Though a reference to it would be a good idea. That would prevent a lot of confusion and digging around for anyone who runs into on this issue when working with volumes on Windows. |
Thanks! |
Hi @cmaessen |
Those steps should be permanent. That's what the options Auto-mount and Make Permanent are for. |
Ah.. i cross checked it, it was my docker-compose.yml configuration issue. |
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Steps to reproduce the issue:
Describe the results you received:
The WordPress container does see the theme folder and is complaining about the missing theme style file (indicating that the mount is indeed available but doesn't have any content).
Describe the results you expected:
File listing as generated by my build process for a WordPress theme.
Additional information you deem important (e.g. issue happens only occasionally):
I strongly suspect that I'm doing something that isn't correct. But any documentation I've found, or tutorials, are extremely silent on the details of how these mounts work if you're not in c:/users on Windows. Even the official docker documentation[doesn't mention this in their WordPress quickstart nor does the docker-compose documentation clarify this.
The text was updated successfully, but these errors were encountered: