-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Mounted volumes are empty in the container. #25
Comments
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.
I've tried unsharing/re-sharing, uninstalling and re-installing docker |
Same here.
EDIT: add relevant log section
|
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 and from there I was able to login and pull my image into my vm. I am unable to ssh into MobyLinuxVM. Also when I pull up the vm through the Hyper-V Manager it just shows a black screen, so I can't even do anything from there. Should I just use a docker-compose file instead of trying to mount? 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. 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.
|
Can you check whether you have 3rd party antivirus software installed? Some users have reported problems due to that: |
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. |
Well the password thing did it for me! |
I also confirm the workaround of removing special characters from the password. In my case the offending character was the semicolon ( |
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:
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:
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:
If I create a local administrator on the machine and use those credentials instead to share the C: drive, I see this instead:
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):
If I share my C: drive using the domain account's credentials and run that same command I get this output:
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 |
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. 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 I had a look at your logs and see in the Linux VM:
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. |
@rneugeba According to the mount.cifs man page there is a separate |
@technivore we do parse and handle the domain and username part and pass it to the CIFS mount. Also, AFAIK, we have user with domain accounts where it is working. |
Just a further update, if I specify the credentials in |
Another update: I explicitly granted full access for the local administrator user to my domain account's home directory (C:\Users\mtr932), rather than just relying on the fact that the local administrators group should have had full access. And now it works -- using local administrator credentials (in |
Hi Mathew, thanks for the info. Glad that you got unblocked. I'll close this issue for now, but update our internal tracking issue for AD users with the info you provided. We certainly should provided a smoother experience for these scenarios. |
@ctliv Thank you sir! I had this same issue a long time ago (the company force password change every 6 months or something), but that was enough time for me to totally forget about this specific issue & solution... :) Would be wonderful if docker could (at some convenient time) verify & highlight authentication issues. |
... so if the same cli could also check if the current samba creds were still valid that would be awesome. But harder. |
This issue can appear using a domain attached account when unplugged from the company network before starting docker.
Having a local user should have fixed the issue but it's not possible on this pc because of the company security policy. |
FWIW, In my experience with WSL/Docker, this happens to me when a folder exists in my src (copied in to workdir with COPY), and then I try to mount a volume to a folder that then exists in the container storage. |
I had same issue after changing password in windows - after reset docker credentials it's working again |
seems this doesn't work using ubuntu + bash for windows 10 |
Docker Toolbox doesn't have Share Drive option. Changing the shared folder inside docker toolbox setting doesn't work. |
@DungLai From what I see, when using In my case Docker Toolbox created a VM named Then you can specify the paths in both your machine and the mapped path in the VM, like:
(you can choose other paths too) Restart the VM and then you can map volumes between the VM and the container like:
And you can access the folder inside your container using the path Of couse, you can also map your entire partition, like |
Hi @lucasbasquerotto Thank you for your comment, the entire partition works for me, but my problem was that my folder is empty when mounted. This seems like a problem that lots of people share. |
Is there any way to reset credentials in docker toolbox? |
I’m having exact same issue as mentioned by @DungLai above. I’m using Windows 10 Home with Docker Toolbox. After mounting, container’s directory is empty (actually, for some weird reason it only shows my package.json file) Also looking for a way to reset credentials in Docker Toolbox... |
This reset-your-credentials-to-make-dfw-happy workaround is pretty obscure and likely not practical for people that have Windows domain group policies that require strict password conventions. As this issue appears to be closed here, is anyone aware of a long-term solution being referenced somewhere (even if merely a work in progress)? |
One of the issues I had when learning, was to try and mount a volume in my container, but then have a folder that conflicted. For example, I'd make my workingdir No really; during development, I would mount my project to /usr/src, THEN mount my config folder to /usr/src/private. Depending on whether I was working in WSL directly (like when the IO bug wasn't preventing NPM from working) or inside a container, that That behavior, with no errors, can lead to behaviors which are VERY hard to debug. I'm with everyone else on resetting credentials also of course. I find that to be twice as hard if you're logging into Windows 10 using microsoft credentials, because if you change the password with MS or at your PC, you THEN have to sync them before being able to do many things (like resetting credentials for Docker in my experience). If you need to do that "resync", check this out: force-refresh-sync-of-microsoft-account-password |
I am not sure if that happen frequently. After I changed domain password I didn't enter new creds in opened window( cause it doesn't say which app requires it). So I had same issue. After I reset drive C shearing and entered new creds everything works fine |
I think #2151 is more relevant for anyone struggling to mount Windows Services For Linux paths under Docker. I hadn't seen anyone else cross-reference it. |
I had a similar problem after installing Docker Toolbox on Windows 7. |
I had the same problem. It was working just fine previously, but then all volumes were empty. I had sharing my drive to docker enabled. I restarted docker. I had no special characters in my windows password BUT few hours ago I connected my local Windows 10 account with Microsoft accout, therefore I changed my password (while docker was closed IIRC) This was causing the issue. So if you recently changed your windows password - make sure to first uncheck sharing drives, APPLY, check drives again, apply again. It started to work again. |
For anybody having this issue still: I was using Git Bash and prepending "winpty" to each command. However, Git Bash tries to resolve paths and thus it would give weird errors. Using PowerShell the winpty is not needed and everything works well as long as you follow the above advice of anti-virus, password, and enabling sharing in settings. |
Please give a hint that there have been issues authenticating the shared volume, so everybody can stop wasting time on this. |
Using Docker Desktop v2.2.0.5 (43884) on Windows 10 I had to untick the drive in the file sharing settings, apply & restart, tick again, apply & restart and voila, it worked. |
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. |
7DF51AAC-D04D-4FDC-AE2F-D19EAA0DC8EF/2016-08-05_13-06-39
The text was updated successfully, but these errors were encountered: