Skip to content
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

You cannot rename files and folders in mounted directories, another problem that has persisted for 4 years #147

Closed
doctorpangloss opened this issue Aug 13, 2021 · 19 comments
Assignees
Labels
bug Something isn't working

Comments

@doctorpangloss
Copy link

A directory bind mounted into the container errors with error with DirectoryNotFound or FileNotFound when the user or an application renames a filename or directory inside the bind mounted directory.

docker/for-win#1058

docker/for-win#2089

moby/moby#38256

This reproduces today on 20H2.

@ghost ghost added the triage New and needs attention label Aug 13, 2021
@doctorpangloss
Copy link
Author

I just bought another SSD to mount a D:/ drive in order to work around this problem, according to moby/moby#38256 (comment)

@vrapolinario vrapolinario added bug Something isn't working and removed triage New and needs attention labels Aug 16, 2021
@ghost
Copy link

ghost commented Sep 16, 2021

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

5 similar comments
@ghost
Copy link

ghost commented Nov 3, 2021

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

@ghost
Copy link

ghost commented Dec 4, 2021

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

@ghost
Copy link

ghost commented Jan 4, 2022

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

@ghost
Copy link

ghost commented Feb 4, 2022

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

@ghost
Copy link

ghost commented Mar 7, 2022

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

@cwilhit
Copy link
Contributor

cwilhit commented Mar 24, 2022

@doctorpangloss I tried to repro this on WS2022 and was not able to. I tried one of the repro steps listed in the linked issue and tried another one of my own. Both worked as expected. Are you still experiencing issues here, and if you are, have you found anything to reliably repro it?

@doctorpangloss
Copy link
Author

doctorpangloss commented Mar 24, 2022

I have no idea, it wasn't working around Aug 13, 2021, so by now I've abandoned Windows containers.

This was definitely not one of those, "a bug so old it couldn't possibly be a real problem" issues. This was a "hit the homekey and never try again" issue. I filed 3 critical / blocking Windows containers bugs and just didn't hear back from an engineer, still, for months, so what else was I going to do.

The best response you could give would be a link to the automated test verifying the issue is fixed. For something like infrastructure I'm sure it's reasonable that there's an automated test instead of two randos on the Internet going by each other's word on it.

@cwilhit
Copy link
Contributor

cwilhit commented Mar 24, 2022

I am sorry some did not respond to your issue until now (waiting for seven months is laughable, I agree).

We've had Microsoft engineers look at this in the past and have been unable to repro this. I am closing this issue as you've since moved on and we don't have a point of engagement to help pinpoint further what the culprit could be. If someone else is hitting this issue, please let us know and we will reopen and work on getting to the bottom of this.

@cwilhit cwilhit closed this as completed Mar 24, 2022
@doctorpangloss
Copy link
Author

We've had Microsoft engineers look at this in the past and have been unable to repro this. I am closing this issue as you've since moved on and we don't have a point of engagement to help pinpoint further what the culprit could be.

It's the Windows containers team's prerogative whether or not it wants to write automated tests.

@jheaff1
Copy link

jheaff1 commented Jul 12, 2023

I observed this issue today and have a simple repro:

docker run --rm -it -v my-named-volume:C:\my-named-volume --isolation=process mcr.microsoft.com/windows/servercore:ltsc2022@sha256:7c07bd85c69a70b536ff05c59f49c1e308bf704906e59825d1a30e0cee86a84a

Then inside the container run:

cd my-named-volume
mkdir test
move test test2

The last command fails.

This is preventing me from using Windows containers as a developer environment. I could use hyper-v but my builds slow down by a factor of 3

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

2 similar comments
@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

@microsoft-github-policy-service
Copy link
Contributor

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

1 similar comment
Copy link
Contributor

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

@velbur
Copy link

velbur commented Dec 5, 2023

Looks like a solution has been found for me! It's just necessary to grant permissions to the folder or disk that you are mounting into the container for the group from which Docker is launched. For example, it is the docker-user for me.

Copy link
Contributor

This issue has been open for 30 days with no updates.
@weijuans-msft, please provide an update or close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants