-
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
version 2.2.0.0: Error while creating mount source path '/host_mnt/c/code': mkdir /host_mnt/c/code: file exists #5516
Comments
@jlouros thanks for your report. Could you check the canonical case of your directory
but I don't know if this is this is the same error you saw or not. Unfortunately I can't find the diagnostics upload :( Could you try re-uploading diagnostics? Or failing that the 2 interesting log files would be
|
hi @djs55 the problem was the canonical case. If I change it to I was a bit concerned because docker-compose also started failing for me. Thanks for your help |
after checking the logs I saw the error message:
I guess it should be level Error instead of Info |
@jlouros thanks for the fast confirmation. I recently made the fileserver more strict about case to avoid problems where the file contents it cached multiple times in the VM under different names, because only the canonical filename would be invalidated when the file on the host has changed. The extra-strictness on |
I suspect we could automatically rewrite mount sources to the canonical path as well. We'll talk about it tomorrow :) |
Reopening: even though there's a workaround, we still need to fix it. |
I'm experiencing this issue too, using both Git Bash, and WSL. |
I'm also having this issue, with a slight variation. I have the following volume mount in my
Though I have the correct casing in my
I'll get this in my log file:
|
@trumpi exactly the behaviour I'm seeing, caused by an uppercase character in my absolute path. |
We have a fix incoming for this one, thanks for the (numerous) repro cases 👍 |
Sorry our internal repo PR auto-closed the ticket, we’ll keep it open until it’s been confirmed fixed. |
IDEs and Tools like SAM CLI internally use regular casing when mounting code and it's not possible to change that, which means that until this issue is solved it all the tools that rely on docker mount will fail. |
We have a new private build that (we believe) fixes this bug. https://download-stage.docker.com/win/stable/42579/Docker%20Desktop%20Installer.exe. Please try it and let us know how you get on. |
@stephen-turner - thank you, it works! |
I'm afraid the private build proposed by @stephen-turner did not work for me, I am still seeing the same error. Versions:
Diagnostics ID D054EF4A-AB53-4724-BCC3-607227D90AC2/20200202103217 Seeing the error as this:
When trying to just do a This was functioning as expected prior to the 2.2.0 update |
+1 same here.. |
I just tried it out and it worked great !!!
My test was to start a new AWS SAM application with VS code and start a
debugging session.
As I described in issue 5573
<#5573> I used to get the
error "("error
while creating mount source path '/host_mnt/c/Users/{my user
name}/AppData/Local/Temp/aws-toolkit-vscode/vsctkDZvlgv/output/awsToolkitSamLocalResource':
mkdir /host_mnt/c/Users/{my user name}: *file exists*")"
but now with the private build it worked !!!
Thanks
Manu
…On Fri, Jan 31, 2020 at 3:21 PM Stephen Turner ***@***.***> wrote:
We have a new private build that (we believe) fixes this bug.
https://download-stage.docker.com/win/stable/42579/Docker%20Desktop%20Installer.exe.
Please try it and let us know how you get on.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5516?email_source=notifications&email_token=ABULBR3BA2W6MENFXDLYSCDRASB4JA5CNFSM4KJYNTX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKP4LNI#issuecomment-580896181>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABULBR4IWJSUQ5M5TOM6Y2TRASB4JANCNFSM4KJYNTXQ>
.
|
For users experiencing an issue with the private build, can you check if it works when using the same exact casing as the file path on windows? |
My project came up the first time after installing the private build, but then after stopping it and trying to bring it up a 2nd time I get the same file exists errors as before.
my volume mount config in docker-compose.yml is relative like this, without any case specified.
edit: my diagnostics id |
I can't, I'm on Windows Education with MS Spy turned off.. 🙄 (WSL2 is only available on Insiders build) This one appears to refer to the same issue: So the issue was introduced in Docker Desktop 2.2.0.0. Perhaps downgrading solves this? |
We now have a new build for you to try. To recap, we fixed one cause of this error in 2.2.0.1. The new build, 2.2.0.2, fixes the other known cause of the same error. You can get it from https://download-stage.docker.com/win/stable/42644/Docker%20Desktop%20Installer.exe. Everyone who's still seeing this error, please do try it the new build and let us know whether it fixes it for you. Thank you. |
Wonderful, works on my end now, thank you all for your hard work! |
That resolved the issue for me too. Much appreciated. |
@stephen-turner how long until this gets pushed out to the Edge version? I don't really like swapping channels a bunch of times and I just switched from Stable to Edge. :) |
This issue still persists for me on the 2.2.02 build. I did notice that if I remove mounts that do not have junctions then it works fine. Like everyone else on this thread, this worked fine pre 2.2.0.0. This does not work in the latest build from this morning. "\Settings\Backups" is a normal directory while "\Share" is a folder junction pointing to an external drive.
This allows the container to start properly if I exclude the directory junction.
As anticipated, mounting only the directory with the junction still fails.
|
Just wanted to note that in my issue above (#5516 (comment)) the path contains no junctions on my system. |
I can confirm. Works on my end, too! Many thanks! |
Side Note: Not the same issue as this thread, but I noticed while reading it that @djs55 mentions changes to the file system strictness:
So it made me wonder if it's also somehow causing this issue as well, that I hadn't had before, using the same docker-compose code (previously I was able to run phpmyadmin using the same code): docker-library/php#944 I could be wrong, but thought it might be worth mentioning anyway. |
@STaRDoGG are you referring to this issue: phpmyadmin/docker#267 ? If so I think this comment is particularly interesting: phpmyadmin/docker#267 (comment) -- without any volume mounts you still saw the error
From your repro I would conclude that
Could you confirm that I'm looking at the right comments? (These threads can get a little confusing). If you haven't captured a diagnostics report after a repro, could you do this and quote the id here? The logs in the diagnostics report might be useful. My guess is that this would be a bug in the Docker engine itself -- the part that's shared between Linux, Mac and Windows. |
So to summarise, it looks like the issue on this ticket is fixed. Thank you for all your testing. @pixelmixer has one remaining issue with NTFS junctions. That issue is #5582. |
Yessir, those are the right comments you were looking at. It turns out that for some some reason certain containers give that error w/out any volume mounts at all. i.e.
I'm not sure why, but this only started happening recently, like I mentioned earlier, I was running phpmyadmin with that same run command (including the volume mounts) not too long ago, but made some changes to other services in a docker compose file (no changes to the phpmyadmin container), removed the phpmyadmin container, then tried to I will try to capture a diagnostics report, and post it later on tonight (it's almost 4am here and have to try and ink out a couple hours of sleep before work, lol). |
Thanks @STaRDoGG. When you do, could you create a new ticket for it please? Thanks. |
We have just released 2.2.0.3, which fixes this issue, so closing this ticket. @YouveGotMeowxy It will be on Edge within 24 hours too. |
Finally, I can also confirm that the new build ( https://download-stage.docker.com/win/stable/42579/Docker%20Desktop%20Installer.exe ) from @stephen-turner fixes this bug that I have been struggling with. Thanks a lot. I have to mention that first I need to clean all previous docker installations including docker toolkit. Then I had to share my C drive from |
Unfortunately for me, I still have the same issue with an overlay error (which I don't really understand). I just installed: Using this Compose (I left out the MySQL service, to focus on the problem container):
Gives me this error (which is the same is the previous Docker Edge version):
For what it might also be worth, since I don't know if the 2 are related in any way, but I'm just throwing it out there, I also get this error when trying to create an Adminer container, and mount a local CSS file to the container:
I'm running on Win 10 x64 (Version 10.0.18363.657]) |
@STaRDoGG That doesn't appear to be the same bug. Could you create a new ticket please, and include diagnostics. |
Hi @stephen-turner, apologies for posting it here; I figured I would since it was addressed above, plus toward the end of the post it shows that I still get the bug in this thread with the Adminer container. I'll post below, the compose I use for that container as it may still help. I created the new issue as requested, including a diagnostics code. Thanks for looking into it, it's been driving me insane over roughly the last month that I can't figure out what the problem is, lol |
Here's my Compose file that still gives the bug in the topic:
Error:
Docker version: |
@STaRDoGG just a thought: have you tried with |
@mat007 I hadn't tried that variation yet, but it does give me a different, strange error now, when I use this instead (all else is the same as above): Code:
Error:
Previously, I've always used the format I showed originally and it always worked (and still seems to for most of my other containers). But, it's interesting that the new error calls it a "mode"? |
It’s probably because of the |
@mat007 np, ty for the attempt. =) |
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
should be able to attach volume point to a folder on host
Actual behavior
C:\Program Files\Docker\Docker\resources\bin\docker.exe: Error response from daemon: error while creating mount source path '/host_mnt/c/code': mkdir /host_mnt/c/code: file exists.
Information
C:\code
Steps to reproduce the behavior
docker run --rm -v c:/code:/data alpine ls /data
The text was updated successfully, but these errors were encountered: