BCContainerhelper version
6.1.10
Describe the issue
The command Flush-ContainerHelperCache fails if the image mcr.microsoft.com/windows/nanoserver:ltsc2022 is present. After delete this image it runs fine.
I think the problem occurs in line 202, because $inspect.config.Env not exists for this image.
Command or script used to produce the issue
Flush-ContainerHelperCache -keepdays 15
Full output of the command or script
PS E:\Scripts> & '.\Limpiar Cache BcContainer_DEVOPS-BIZ.ps1'
Waiting for other process flushing cache
Other process completed flushing
Flush-ContainerHelperCache Telemetry Correlation Id: 450725cd-f1e3-4c7c-9e24-6dfcb29ce51d
ForEach-Object : No se encuentra la propiedad 'Env' en este objeto. Compruebe que existe.
En C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.1.10\ContainerHandling\Flush-ContainerHelperCache.ps1: 197
Carácter: 26
-
$allImages | ForEach-Object {
-
- CategoryInfo : NotSpecified: (:) [ForEach-Object], PropertyNotFoundException
- FullyQualifiedErrorId : PropertyNotFoundStrict,Microsoft.PowerShell.Commands.ForEachObjectCommand
Additional information
No response
Does this happen every time?
No
Did this used to work?
No