Closed silasvd closed 1 year ago
There was actually another bug in that code, introduced in the fix for https://github.com/microsoft/navcontainerhelper/issues/929 but never found.
If anything, this code:
$idx = $dst.IndexOf(':', $_.IndexOf(':') + 1)
should have been
$idx = $dst.IndexOf(':', $dst.IndexOf(':') + 1)
But with the new fix, but are fixed.
Shipped in 4.0.7
Describe the issue I added the following parameter while creating a bc container -additionalParameters @('-v \.\pipe\docker_engine:\.\pipe\docker_engine')
This leads to the problem that Get-NavContainerSharedFolders stopped working correctly due to the following error message: The length must not be less than 0 (zero). Parameter name: length
Scripts used to create container and cause the issue
Full output of scripts
https://github.com/microsoft/navcontainerhelper/blob/master/ContainerInfo/Get-NavContainerSharedFolders.ps1 Maybe code could be changed like this: