You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
#!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
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.
Now run with --device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599. You can no longer rename files inside DockerTest2.
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.
Delete and recreate DockerTest2. Run without the device. Observe you still cannot rename files inside a seemingly new directory by the same name.
The text was updated successfully, but these errors were encountered:
Versions
Windows 11 21H2 22000.588
Reproduction:
Setup and run the container:
Inside the container
Observe the error:
The same error occurs under powershell's
mv
.Notes
DockerTest
, create a directoryDockerTest2
, then run the container omitting--device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599
will show you can correctly rename files insideDockerTest2
this directory from the container.--device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599
. You can no longer rename files insideDockerTest2
.--device class/5B45201D-F2F2-4F3B-85BB-30FF1F953599
. You still cannot rename files insideDockerTest2
. It appears some state on the directory has changed.DockerTest2
. Run without the device. Observe you still cannot rename files inside a seemingly new directory by the same name.The text was updated successfully, but these errors were encountered: