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 when creating a container with the GPU device, and interacting with the directory permanently corrupts it #214

Closed
doctorpangloss opened this issue Mar 30, 2022 · 1 comment
Labels
question Further information is requested triage New and needs attention

Comments

@doctorpangloss
Copy link

Versions

Windows 11 21H2 22000.588

Reproduction:

Setup and run the container:

#!pwsh.exe
cd ~/Documents
mkdir DockerTest
New-Item DockerTest\test.txt
docker run -it --rm --isolation process -v "$Home\Documents\DockerTest:C:\DockerTest" --device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599 mcr.microsoft.com/windows/servercore:ltsc2022

Inside the container

cd C:\DockerTest
rename test.txt test2.txt

Observe the error:

The system cannot find the path specified.

The same error occurs under powershell's mv.

Notes

  1. Instead of DockerTest, create a directory DockerTest2, then run the container omitting --device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599 will show you can correctly rename files inside DockerTest2 this directory from the container.
  2. Now run with --device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599. You can no longer rename files inside DockerTest2.
  3. Now run without --device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599. You still cannot rename files inside DockerTest2. It appears some state on the directory has changed.
  4. Delete and recreate DockerTest2. Run without the device. Observe you still cannot rename files inside a seemingly new directory by the same name.
@doctorpangloss doctorpangloss added the question Further information is requested label Mar 30, 2022
@ghost ghost added the triage New and needs attention label Mar 30, 2022
@doctorpangloss
Copy link
Author

This reopens #147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triage New and needs attention
Projects
None yet
Development

No branches or pull requests

1 participant