Describe the bug
When using volume mounts in process isolation mode, moving breaks as soon as any folder is moved. See reproduction
To Reproduce
First, spawn a docker container. Make sure to mount some arbitrary folder as a volume mount.
docker run --rm -it -v "C:\some\folder:C:\data" --isolation process mcr.microsoft.com/windows/servercore:ltsc2022 powershell
Then, run the following commands:
# Go into the mount
cd data
# Create the file/folder for testing
mkdir myfolder
echo "" > myfile
# Try moving the file. This succeeds
mv myfile myfile2
# Try moving the folder. This errors
mv myfolder myfolder2
# mv : Could not find a part of the path.
# At line:1 char:1
# + mv myfolder myfolder2
# + ~~~~~~~~~~~~~~~~~~~~~
# + CategoryInfo : WriteError: (C:\data\myfolder:DirectoryInfo) [Move-Item], DirectoryNotFoundException
# + FullyQualifiedErrorId : MoveDirectoryItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand
# Now try moving the file again, also errors
mv myfile2 myfile3
# mv : Could not find a part of the path.
# At line:1 char:1
# + mv myfile2 myfile3
# + ~~~~~~~~~~~~~~~~~~
# + CategoryInfo : WriteError: (C:\data\myfile2:FileInfo) [Move-Item], DirectoryNotFoundException
# + FullyQualifiedErrorId : MoveFileInfoItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand
Note: this only happens in process isolation mode. Not in hyperv isolation mode.
Configuration:
- Edition: Windows 11 Enterprise Version 10.0.22631
- Base Image being used:
mcr.microsoft.com/windows/servercore:ltsc2022
- Container engine:
docker
- Container Engine version:
Docker version 28.0.4, build 6430e49
Describe the bug
When using volume mounts in process isolation mode, moving breaks as soon as any folder is moved. See reproduction
To Reproduce
First, spawn a docker container. Make sure to mount some arbitrary folder as a volume mount.
docker run --rm -it -v "C:\some\folder:C:\data" --isolation process mcr.microsoft.com/windows/servercore:ltsc2022 powershellThen, run the following commands:
Note: this only happens in process isolation mode. Not in hyperv isolation mode.
Configuration:
mcr.microsoft.com/windows/servercore:ltsc2022dockerDocker version 28.0.4, build 6430e49