-
Notifications
You must be signed in to change notification settings - Fork 288
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
Volume mounts do not work on windows 10 #77
Comments
@billhab I think you are experiencing Hyper-V driver not supporting mounting volumes, see moby/moby#22981
You might be interested in this comment:
|
I think this is going in the direction that I will not be able to mount volumes successfully in a Windows environment. What good is docker if I can't access my data? I have read so many comments the past couple days that make my head spin. Do this: turn off your firewall or change firewall rules, play with domain user name, remove passwords with funny characters, reset credentials/restart Docker. Is there ANYTHING which works here? Would going to virtual box solve the problem? Maybe not because some people report that doesn't work either. Excuse me but I'm really frustrated with this scenario and no reliable answers. |
@MadLittleMods that's not the case - Docker for Windows supports volume mounting. @billhab can you try the test command suggested in the app?
|
@MadLittleMods - If you look at the screen shot which is the above you'll see I have done that. In fact I have done it about a hundred times when trying different combinations of suggestions from various people. It simply doesn't work. Now I heard that using hyper-v with Docker which is my setup does not support mounting volumes. |
@friism What are the intricacies/caveats of it? Here is a quote I found from you:
Trying not to butt into this issue but here is an example of volume mounting not working:
But the entrypoint can't be found
|
@MadLittleMods that comment was talking about something created with This question is about Docker for Windows, which has host volume mounting support and is different than docker machine. |
I'm sorry guys. this isn't helping me. I just want to have access to a windows set of files (about 40gb of data) in a directory tree from a docker container. Mounting the path as a volume doesn't work. I'd like to find out how to make it work. If there isn't a way to get it working then I'd like to know so I can move on to finding another solution. |
i have the same issue. The example command has a empty result:
Until i tried to mount a subfolder:
That seems very strange, because there are still more user folders in the path "c:/Users".
UPDATE: Problem seems solved in new Beta Version 1.12.1-beta26, Build 7018 |
Experiencing the same problems as @phinz Update: Working in beta channel, Version 1.12.1-beta25, Build 6833 |
Not only do you not see the content of the volume but you can't write back into it. The source never sees what has been copied there. This may be related or a different issue. PS C:\Users\bihaber> docker run -it -v //d/scratch:/scratch bills:1.2 bash |
Is it newer than what I am running and if so how do I get it? Server: |
@dgageot I'm running Docker for Windows version |
I just tried Docker for Windows version 1.12.1.beta26 and it doesn't work either. |
I have uninstalled Docker, then installed Docker toolbox. Neither work. |
So, after trying over a dozen tweaks, settings, changes and reboots it suddenly works but I'm not able to break it on purpose so I've no idea what did it. :( |
I'm trying to Mount host volumes for some weeks now, without success. Log files tell me, that sharing works, but the Directory Content shown only lists previously mounted Folders and nothing else. I'm Kind of frustrated with this. D9E7060A-B59A-4546-BAB8-3E537A4C22D6/2016-09-19_10-04-47 |
I followed the instructions in this article https://blogs.msdn.microsoft.com/stevelasker/2016/06/14/configuring-docker-for-windows-volumes/ and after a few tries the way I made it work was by giving Docker the local computer name as part of the credential (i.e. MYCOMPUTER\DockerHost ) |
josemanners - is your system windows 10 with hyper-v? |
@billhab @thasmo @protubero @josemanners Stay tuned and thank your for being really patient. A better file sharing should ship in next beta! |
@billhab to answer your question, I'm running Windows 10 Enterprise Build 14393.105 |
I had the similar issue with Docker 1.12.0-stable (Hyper-V) on Windows 10. I thing that the main problem was with my firewall which blocked Hyper-V Virtual Ethernet Adapter (DockerNAT). I did follow:
You can try it. |
@moler All that was tried. Didn't work. I have McAfee firewall. Turning it off didn't help. |
@dgageot What makes you believe that the next beta will fix this issue? |
@billhab Beta27 was released today with hardened file sharing feature. Could you take a look and close this issue if it is fixed? Thanks a lot! |
Works great with richarddowner's solutiion. Thanks. |
I just wanted to mount a local folder to my container and used the exact same commands that worked multiple times in the past
but non of them worked. I reset my credentials, changed my password and even reinstalled Docker but it's still not working. Does anybody have an idea how I can fix this? |
Just and FYI, I was running into this issue where the folder mounting was not working. I was trying to run docker via the terminal Cmder. Cmder was doing something that was making the mount operation fail. So if you're reading this and using Cmder, switch to powershell on Windows. On a side note, I was docker a lot on linux, I can't believe how slow it is on Windows, PAINFUL. |
I think it was related to password change on windows user. I used @richarddowner solution to fix. |
@liesislukas is right, i have change my windows password and disk sharing was **** up after that, need to unshare and share all driver after that |
Resetting credentials via the tray icon, in settings, shared drive Then specifying the full location of the directory to be mounted solved the issue for me. |
experienced same condition as @liesislukas and @Noext , I have to change password regularly and did not realize that it affected the docker drive sharing credential. @richarddowner solution worked like a charm. Thanks a lot!!! It might be good if when the mounting fails, docker can give an error message. |
error is still exist.
|
For those using docker toolbox, what worked for me is adding shared drive in the virtual box machine. See this link for details. I had the same issue on Windows 10 Home edition, where running |
I tried several things to try to make run this stuff on my Windows 10 Laptop. All configurations are set (I am truly sure I did them all), so anyone can please have a clue on this by this open thread on Windows + docker + Hyper-V in 2019 ? I do see my shared directories, but no heck sign of my files there...
|
I had a few issues with docker on my windows machine:
|
THANK YOU. I can see my files after mounting both ways now with Docker ToolBox |
What helped me was reseting credentials in Docker Desktop->Settings->Shared Drives. |
@dodoslav's solution worked for me. |
@dodoslav worked for me as well. |
If you are still facing the issue, try the same set of commands to mount the drives using Powershell CLI and it'll prompt you to allow shared drives post which you'll be able to mount drives to containers with ease. |
Adding on to the thread. I was facing an intermittent issue with the mounted directory. The files were shared to Docker and it was working fine until the docker service got stuck for some reason. After that, if I ran the container command again, it showed an empty directory. Restarting docker did not work, but restarting the system did the trick. Docker version: Docker version 19.03.4, build 9013bf5 |
It worked to me by unclick (Unshare) apply and click (share again) and apply worked. |
On my side, unshare and share again from Docker Desktop settings prevents docker from restarting and makes it crash, a restart of the machine is necessary. |
Don't rush - Read it carefully So guys i spent whole day, whole night fixing this problem and finally i got the problem Here i am mapping my webapp folder to node on folder docker See d:// here, if you have a drive and so colon in it it must be // Also Make sure don't mount using $PWD on windows somehow it does not map to correct path. Use physical path as i have shown above I am sure it will make many days of many folks Happy coding Cheers! |
Thanks, this helped me. |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Expected behavior
docker run -it -v //c/Users://c/users Ubuntu bash
ls -al /c/users should show windows usernames
Actual behavior
Volume is created but /c/users is empty
Information
I have read all the issues where this has been reported before. Nothing I have tried makes any difference. It doesn't work. Even though volume is created in the container, it does not show any directories and files from the source path. Neither Issue #25 or Issue #50 solve this problem.
A86A3BDC-3635-4682-A3B1-467D8ABE2260/2016-09-13_09-56-40
Steps to reproduce the behavior
Volume is mounted but nothing in the directory.
The text was updated successfully, but these errors were encountered: