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
windows 10 docker volume mounting problems #23992
Comments
Hi @daaps, have you shared the |
@daaps Have you tried to reset to factory defaults and then re-enable file sharing? Beware that this will wipe out all your containers and images |
Reset to factory defaults... did it for me. (1.12.0-rc3-beta18 build 10586) |
Possibly a duplicate of #22981 |
I have this same problem running 1.12.0-rc3 build 91e29e8 Cannot seem to get a volume mount to work properly. Also, only my C drive shows up, cannot get network mounts to show up under "Shared Drives" |
So I'm having an issue which might be related - Occured on
Those german bits mean the resource doesn't exist ( Things I've tried:
Sometimes it works and sometimes it doesn't - I can't really see where there should be a difference (I didn't do anything but click and apply it again for a couple of times). The only thing that apparently never works is doing it while containers (with or without volumes of the hostsystem mounted) are running. |
Instead of You can use Details: It works the same way in my PHPStorm, instead of browsing a local directory I just do /c/Users......... Hope it helps. PS: For the cmd in Powershell it was with admin rights |
Seems I speaked too fast... it works only for folders, the files aren't mounted. |
i have the same problem on windows 10 OS build 10586.494 with docker 1.12.0-rc4 |
@guybartal I have the same problem with hyper V as driver. Only empty folders showing up. |
happy to tell that after resetting to factory defaults i can see the files also! |
I tried everything, None works, at least for me. |
So with 1.12.0-rc4-beta20 (5579) it has the same Problem (but fails to mount the share 100% of the time) - the Log output has changed:
Translations: This is annoying since I'm trying to get my colleagues to work with docker on their local machines of which 100% run Windows (on the positive side: i haven't had any problem whatsoever in months with d4osx) |
Like @guybartal since the last update, after a reset of docker it works perfectly... (if you mind I tried with the default driver it works too..) PS C:\Users\Patrick\Documents\GitHub\docker-php-xdebug-vscode> docker volume create --name silex PS C:\Users\Patrick\Documents\GitHub\docker-php-xdebug-vscode> docker run --volume-driver=glusterfs --volume /c/Users/Patrick/Downloads/docker-compose-nginx-silex:/silex alpine ls -l /silex total 133 |
Ok, so for me the problem it seems it was the fact that the password contained special chars. After i changed my password, worked. At least for now. |
@daaps can you share the special chars you used? |
from my experience even a password containing an exclamationmark ( |
@KekSfabrik That's surprising since all our integration tests run on machines with an exclamation mark in the password. I would be really glad to hear your experience if you use another password. Thanks a lot! |
I can verify it happens with @ in the password (may also be related to using a live account vs. a local account) |
I seem to have problems using a # in the password |
@dgageot
Suggests the winbox or my user account isn't configured for delegation (it's a domain login).. EDIT |
@daaps I had problems using $ in the password. I changed the password removing $ and all is working fine. Thanks for the workaround. |
it is a requirement in my company to have special characters and i face the same issue. |
I have also problems to mount host volumes without having special characters in my password!? Resetting had no effect. |
I'm having this issue as well, no special characters though unless you count norwegian letters as special (æøå)... Using Docker Version 1.12.1-stable (build:7135) on Windows 10 Enterprise 10.0.14393. |
I've experienced this problem too. It seems to manifest if I run Kitematic. |
I'm able to map the volume from local to docker, so using alpine image, I can list (ls) the folder I mapped. But all files in the folder mapped is mapped as folders and not files, rendering it useless. Also creating files inside alpine in this folder does not create files on the host. |
The same problem with mapping files (folders work) on Docker version 1.12.3, build 6b644ec. Using windows 10 Pro version: 1607 build: 14393.576 |
@andriykrasnychuk the windows platform does not support bind-mounting individual files; that's a limitation of the Windows platform, see; https://docs.docker.com/engine/reference/commandline/run/#/mount-volume--v---read-only
|
@thaJeztah So far I can't see this discussion being at all about mapping individual files, but mapping folders. |
How can I share drive if my account doesn't have password? |
@SG5 can you report that issue in the docker for windows issue tracker? Looks like that's something to be addressed there (as the GUI is not part of this repository); https://github.com/docker/for-win/issues |
I had the same problem without any special chars in my windows password. But the issues might have started when I changed my password... but I'm not quite sure about that. Resetting credentials in the Docker GUI didn't help, but resetting the Docker GUI to factory defaults did! |
I had the same problem with this is only happening on my clean installed windows 10 with only docker for windows installed, my daily working machine seems work fine. (both of them are VMs running on vmware) |
The |
I had to restart my docker (Quit Docker, then run it again) in order to view the mounted volumes... (host: Windows 10 Pro, version 1607; docker: Client version 17.03.0-ce, Server version 1.13.1) |
This morning I changed my Windows password and suddenly Docker had problems when mounting volumes (no files inside mounted volumes!). I reset the docker credentials on the shared drives settings page and typed in my new password. Then it worked. Windows 10 Pro, Version 1607, Build 14393.1066 |
@SG5 If your main windows account doesn't have a password and you don't want to set one, you can simply create another user specially for docker. |
I share my experience to work around the issue of the mounting of volume without changing my password, if it can help. For those who use Docker Toolbox with Windows 10, there may be a solution to get the mount of shared folders, and not have an empty folder and unmounted volume issues with Docker Compose. For Windows 10 Pro with Hyper-V, I don't know if there is an equivalent procedure. By default, in the VM configuration in Virtualbox, only To fix the problem, you must change the configuration of the share folders of the VM in Virtualbox, adding the folder to share, and especially keep the same tree, ex. If you do not keep the tree structure, the mounting of volumes will not work. Bug or not, by changing the config in this way, everything works correctly, and I lost a lot of time for this subtlety. Windows 10 Home 64bit, 1703 Build 15063.413 |
closing, as this went stale and is really old now |
daaps commentedJun 27, 2016
Hello,
I am using Docker version 1.12.0-rc2, build 906eacd, experimental
The problem that i had with docker toolbox, regarding the fact that i cannot create volumes between windows and docker still persists:
an example : docker run -itd --name=nodejs --privileged=true -v c:\Users\xxx:/mnt/shared/ readytalk/nodejs does not map my folder inside docker. I tried many other combinations like :
-v c:/Users/xxx/:/mnt/shared/ , -v /c/Users/xxx/:/mnt/shared/, -v //c/Users/xxx/:/mnt/shared/ I am using PowerShell
The text was updated successfully, but these errors were encountered: