Mounted volumes are empty in the container.
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\Users\bagratte> dir stitch
Directory: C:\Users\bagratte\stitch
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 8/5/2016 1:04 PM 0 lilo.txt
-a---- 8/5/2016 1:04 PM 0 mushu.txt
PS C:\Users\bagratte> docker run --rm -v c:/Users/bagratte/stitch:/data alpine ls -la /data
total 4
drwxr-xr-x 2 root root 40 Aug 5 09:05 .
drwxr-xr-x 25 root root 4096 Aug 5 09:05 ..
PS C:\Users\bagratte>
7DF51AAC-D04D-4FDC-AE2F-D19EAA0DC8EF/2016-08-05_13-06-39
Hi @bagratte, thank you for taking the time to report the issue.
Have you shared the C drive before you run the docker command?
Yes, I had shared the C drive as in your screenshot.
Also having this problem.
C:\Users\emil.kantis> docker run --rm -v c:/Users:/data alpine ls /data
C:\Users\emil.kantis> ls C:/users
Directory: C:\users
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 2016-08-05 11:32 administrator
d----- 2016-08-04 13:41 Default.migrated
d----- 2016-08-05 12:53 Dockerhost
d----- 2016-08-04 13:45 Emil
d----- 2016-08-05 10:13 emil.kantis
d----- 2016-08-04 13:50 PEadmin
d-r--- 2016-08-04 13:40 Public
[13:22:35.071][ApiProxy ][Info ] proxy >> POST /v1.24/containers/create [rewriteBinds]
[13:22:35.073][ApiProxy ][Info ] Rewrote mount c:/Users:/data (volumeDriver=) to /c/Users:/data
[13:22:35.096][ApiProxy ][Info ] Failed to Walk to [snapshots 7244a4d64be1fd01a67c160cf6869899b3c192d9 ro com.docker.driver.amd64-linux proxy http] 9p: No such file or directory
[13:22:35.098][ApiProxy ][Info ] Failed to read proxies/http from snaphshot p9p.MessageRerror{Ename:"No such file or directory"}


I've tried unsharing/re-sharing, uninstalling and re-installing docker
Same here.
PS D:\> docker run --rm -v c:/Users:/data alpine ls -a /data
.
..
PS D:\>

PS D:\> docker --version
Docker version 1.12.0, build 8eab29e
PS D:\> docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 10
Server Version: 1.12.0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 17
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge overlay host null
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.15-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 6
Total Memory: 8.021 GiB
Name: moby
ID: 6A56:MU5U:HN2X:F2XP:KKZR:DUFM:B4RB:RMNP:DQXA:U745:UYNW:KFZ5
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Insecure Registries:
127.0.0.0/8
EDIT: add relevant log section
[19:43:24.684][ApiProxy ][Info ] proxy >> POST /v1.24/containers/create [rewriteBinds]
[19:43:24.688][ApiProxy ][Info ] Rewrote mount c:/Users:/data (volumeDriver=) to /c/Users:/data
[19:43:24.702][ApiProxy ][Info ] Failed to Walk to [snapshots 33809d47c4c64c6834bbfa8ead740e920317cd32 ro com.docker.driver.amd64-linux proxy http] 9p: No such file or directory
[19:43:24.705][ApiProxy ][Info ] Failed to read proxies/http from snaphshot p9p.MessageRerror{Ename:"No such file or directory"}
[19:43:24.711][ApiProxy ][Info ] proxy >> POST /v1.24/containers/create
[19:43:24.715][ApiProxy ][Info ] Dial Hyper-V socket 81e04832-8a73-4b67-90bb-a3bb3ce5b156:23a432c2-537a-4291-bcb5-d62504644739
[19:43:24.819][ApiProxy ][Info ] proxy << POST /v1.24/containers/create
[19:43:24.827][ApiProxy ][Info ] proxy >> POST /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/attach?stderr=1&stdout=1&stream=1
[19:43:24.834][ApiProxy ][Info ] Dial Hyper-V socket 81e04832-8a73-4b67-90bb-a3bb3ce5b156:23a432c2-537a-4291-bcb5-d62504644739
[19:43:24.841][ApiProxy ][Info ] Upgrading to raw stream
[19:43:24.849][ApiProxy ][Info ] proxy >> POST /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/start [start]
[19:43:24.855][ApiProxy ][Info ] proxy >> POST /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/start
[19:43:24.859][ApiProxy ][Info ] Dial Hyper-V socket 81e04832-8a73-4b67-90bb-a3bb3ce5b156:23a432c2-537a-4291-bcb5-d62504644739
[19:43:25.156][ApiProxy ][Info ] proxy << POST /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/start
[19:43:25.243][ApiProxy ][Info ] proxy << POST /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/attach?stderr=1&stdout=1&stream=1
[19:43:25.248][ApiProxy ][Info ] proxy >> POST /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/wait
[19:43:25.252][ApiProxy ][Info ] Dial Hyper-V socket 81e04832-8a73-4b67-90bb-a3bb3ce5b156:23a432c2-537a-4291-bcb5-d62504644739
[19:43:25.549][ApiProxy ][Info ] proxy << POST /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/wait
[19:43:25.556][ApiProxy ][Info ] proxy >> GET /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/json
[19:43:25.564][ApiProxy ][Info ] Dial Hyper-V socket 81e04832-8a73-4b67-90bb-a3bb3ce5b156:23a432c2-537a-4291-bcb5-d62504644739
[19:43:25.570][ApiProxy ][Info ] proxy << GET /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04/json
[19:43:25.581][ApiProxy ][Info ] proxy >> DELETE /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04?force=1&v=1
[19:43:25.587][ApiProxy ][Info ] Dial Hyper-V socket 81e04832-8a73-4b67-90bb-a3bb3ce5b156:23a432c2-537a-4291-bcb5-d62504644739
[19:43:25.594][ApiProxy ][Info ] proxy << DELETE /v1.24/containers/7441d331ab6a2e78a5669c5fcbca9a664140d87038f1df3b5247a7bf10ccbc04?force=1&v=1
Samsies
Update: tried changing password (removed special characters), but it did not fix my problem.
Update 2: Another thing I can't figure out and I think it is related is that with the docker-toolbox I could use
diagnostic id: 1A1304D4-EA05-47A9-88C8-55DB45E9BA2E/2016-08-09_12-59-31
Update3: I installed beta 23 and it is still not working for me. I am on a domain computer
diagnostic id: D91B0EBA-383B-4CC3-9C6F-FA4C02EE6D81/2016-08-17_12-26-28
Update4: It still is not working even with [domain][username] as login or [computer name].[domain][username]
Not sure if it helps to know or not but I use vpn cisco anyconnect v 3 client as well.
diagnostic id: D91B0EBA-383B-4CC3-9C6F-FA4C02EE6D81/2016-08-19_11-53-10
Update5: I am working on an older DELL Latitude. I have upgraded it to Windows 10, but it looks like the machine isn't supported by Windows 10. It runs fine, but I have noticed it doesn't seem to like my CD/DVD drive. Could this be having an adverse affect on mounting the mobylinux.iso?
Also the same problem. I think it is because of some issues with permissions.
When I try to run containers that need to write some files to the disk (like for instance, Bitnami's laravel container) the container fails to write those files due to a permission denied error.
That's probably related to the reason why there are no listed files on mounted volumes.
I've even twiked arround on the windows permission system giving full access to everyone in the folder of the project with no success.
uploaded diagnostic ID: 618072AE-BDD6-4A12-8E6B-BD3E53120D0F/2016-08-05_22-16-01
Same problem here. I've tried multiple commands to mount the host directory, but none of them worked.
docker run --rm -v c:/Users/myusername/Downloads:/data ubuntu ls -la /data
total 4
drwxr-xr-x 2 root root 40 Aug 6 02:53 .
drwxr-xr-x 34 root root 4096 Aug 6 02:53 ..
/data was created, but it contained nothing.
Can you check whether you have 3rd party antivirus software installed? Some users have reported problems due to that:
- https://twitter.com/philiciousPhil/status/761529849878089728
- https://forums.docker.com/t/volume-mounts-in-windows-does-not-work/10693/108?u=friism
Yes, I have Mcafee installed and I don't have the permission to uninstall or disable it. I guess the anitvirus software might be the reason but there's no way for me to check it.
@friism I've just got windows defender and firewall. Everything default I think.
@friism oh wow, just got it. Based on a comment in that forum thread you linked, I changed my windows password to not have special characters, reset the credentials in docker, and it started working. I don't know what docker is doing with passwords. How bizarre.
Well the password thing did it for me! thanks @ProCynic
I also confirm the workaround of removing special characters from the password. In my case the offending character was the semicolon (;).
This must be either documented or, better still, fixed.
I've had nothing but flaky behavior with shared drives with DFW for months. Just updated to the latest build (5971), and have shared my 2 drives. One of them appears to be visible, while the other is not:
PS C:\Users\pekj> docker run --rm -v d:/:/data alpine ls /data
PS C:\Users\pekj>
Maybe this is some sort of permissions thing, but as I provided my own credentials, not sure what it could be. Here is log snippet from above:
[08:09:57.351][ApiProxy ][Info ] proxy >> POST /v1.24/containers/create [rewriteBinds] [08:09:57.354][ApiProxy ][Info ] Rewrote mount d:/:/data (volumeDriver=) to /d:/data [08:09:57.365][ApiProxy ][Info ] Failed to Walk to [snapshots 3ffc6ae09d300fab4008d79f7e94b1886ab0830e ro com.docker.driver.amd64-linux proxy http] 9p: No such file or directory [08:09:57.368][ApiProxy ][Info ] Failed to read proxies/http from snaphshot p9p.MessageRerror{Ename:"No such file or directory"} [08:09:57.371][ApiProxy ][Info ] proxy >> POST /v1.24/containers/create [08:09:57.373][ApiProxy ][Info ] Dial Hyper-V socket c54bc9af-2a64-4e51-9d3d-4a95d2eda316:23a432c2-537a-4291-bcb5-d62504644739 [08:09:57.471][ApiProxy ][Info ] proxy << POST /v1.24/containers/create [08:09:57.480][ApiProxy ][Info ] proxy >> POST /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/attach?stderr=1&stdout=1&stream=1 [08:09:57.482][ApiProxy ][Info ] Dial Hyper-V socket c54bc9af-2a64-4e51-9d3d-4a95d2eda316:23a432c2-537a-4291-bcb5-d62504644739 [08:09:57.485][ApiProxy ][Info ] Upgrading to raw stream [08:09:57.487][ApiProxy ][Info ] proxy >> POST /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/start [start] [08:09:57.490][ApiProxy ][Info ] proxy >> POST /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/start [08:09:57.495][ApiProxy ][Info ] Dial Hyper-V socket c54bc9af-2a64-4e51-9d3d-4a95d2eda316:23a432c2-537a-4291-bcb5-d62504644739 [08:09:57.730][ApiProxy ][Info ] proxy << POST /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/start [08:09:57.783][ApiProxy ][Info ] proxy << POST /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/attach?stderr=1&stdout=1&stream=1 [08:09:57.786][ApiProxy ][Info ] proxy >> POST /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/wait [08:09:57.788][ApiProxy ][Info ] Dial Hyper-V socket c54bc9af-2a64-4e51-9d3d-4a95d2eda316:23a432c2-537a-4291-bcb5-d62504644739 [08:09:58.012][ApiProxy ][Info ] proxy << POST /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/wait [08:09:58.022][ApiProxy ][Info ] proxy >> GET /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/json [08:09:58.034][ApiProxy ][Info ] Dial Hyper-V socket c54bc9af-2a64-4e51-9d3d-4a95d2eda316:23a432c2-537a-4291-bcb5-d62504644739 [08:09:58.043][ApiProxy ][Info ] proxy << GET /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252/json [08:09:58.048][ApiProxy ][Info ] proxy >> DELETE /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252?force=1&v=1 [08:09:58.053][ApiProxy ][Info ] Dial Hyper-V socket c54bc9af-2a64-4e51-9d3d-4a95d2eda316:23a432c2-537a-4291-bcb5-d62504644739 [08:09:58.060][ApiProxy ][Info ] proxy << DELETE /v1.24/containers/51e14c432369325c6ebac0ca0c51460eb75a407242b8941eb7184fce4742d252?force=1&v=1
I do not have special characters in my password.
I am affected by this issue as well. I log into my machine with a domain account (username = "mtr932") and when I use that account's credentials to share the C: drive (specifying them in "domain\username" format) and then run the command in the "shared drives" dialog, I see this:
PS C:\Users\mtr932> docker run --rm -v c:/Users:/data alpine ls /data
mtr932
If I create a local administrator on the machine and use those credentials instead to share the C: drive, I see this instead:
PS C:\Users\mtr932> docker run --rm -v c:/Users:/data alpine ls /data
All Users
Default
Default User
Default.migrated
MSOLAP$SQLEXPRESS
MSSQL$SQLEXPRESS
Matthew
Public
defaultuser0
desktop.ini
mtr932
Obviously there is a lot of junk in there but the point is the local administrator account can see things that the domain account can't even though the domain account I use is in the local administrator group.
The domain account does have a non-alphanumeric character in its password but it is still an ASCII character. Because of my employer's password policy I can't create a password that only contains alphanumeric characters.
I would just stick with the local administrator account to share the C: drive except when I do so, I still cannot mount any files or folders within my domain user's account (C:\Users\mtr932):
PS C:\Users\mtr932> docker run --rm -v c:/Users/mtr932:/data alpine ls /data
PS C:\Users\mtr932>
If I share my C: drive using the domain account's credentials and run that same command I get this output:
PS C:\Users\mtr932> docker run --rm -v c:/Users/mtr932:/data alpine ls /data
Documents
Which is extremely strange because there are of course far more files and folders in C:\Users\mtr932 than just the Documents folder.
As a temporary workaround I will just put folders I want to volume mount in the root of C: but it would be ideal to be able to use the folders within my actual windows home directory.
I have tried setting "Unidentified networks" to "Private" as per this forum post but that did not help in my case.
Diagnostic id: FCAFD1CA-0D4C-4CB3-BE10-9C0731BB8E58/2016-08-08_16-47-24
Thanks for all the reports and details. We have just released Beta23, which has significant fixes to the way the volume mounts are implemented. It would be great if you could try it and report back if it fixes the issue with volume mounts.
You can download the Beta from here: https://download.docker.com/win/beta/InstallDocker.msi
Thanks Rolf
I have uninstalled the stable and installed the new beta and I still have the same problem. In fact it now appears to be worse because I cannot mount any folders at all, whereas before I could at least mount folders in the root of my C: drive.
I have tried a local administrator account (with a simple alphanumeric password), my domain account (in domain\username format), and my domain account in just username format. My domain account does have a comma in its password.
There's definitely something strange going on with the mounts though because if I mount e.g. C:/Users, the docker container sees nothing. And if I then mount C:/Users/username, it also sees nothing. BUT if I then go back and again mount C:/Users, it will list username as a subdirectory. So just the fact of attempting to mount it previously -- even though it didn't mount correctly and its contents couldn't be seen in the container -- made it appear at least as a directory name upon subsequent mounts of its parent directory.
Diagnostic id: FCAFD1CA-0D4C-4CB3-BE10-9C0731BB8E58/2016-08-17_09-33-14
@technivore Beta23 should support spaces, and pretty much any character from UTF-8 range (that was the fix mentioned in the changelog). So unfortunately, there still seems to be another issue.
There isn't anything strange happening in the sense, that the subdirectories are there as mountpoints from the previous volume share. So if you first to -v C:\:/tmp and it fails, then -v C:\Users:/tmp and it fails, and then again -v C:\:/tmp you'll see an empty Users directory in you container. Confusing....but normal, i think.
I had a look at your logs and see in the Linux VM:
Aug 17 14:27:55 moby kern.notice kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
Aug 17 14:27:55 moby kern.err kernel: CIFS VFS: Send error in SessSetup = -13
Aug 17 14:27:55 moby kern.err kernel: CIFS VFS: cifs_mount failed w/return code = -13
do you maybe have non-default authentication, like kerberos, enabled?
@rneugeba I don't know of any non-default authentication set up on my system. File and printer sharing is enabled for private networks but other than that I don't know what to look for. I'm on Win10 enterprise and joined to a domain. Please let me know what I can do to help troubleshoot; I really want to get this working and not have to go back to Docker Toolbox!
@technivore thanks for getting back. domains users is one of the things we don't test regularly as we don't have AD setup (we do now test with strange passwords, live accounts etc). Look like I have to bite the bullet and set up AD somewhere soon.