diff --git a/ContainerInfo/Test-NavContainer.ps1 b/ContainerInfo/Test-NavContainer.ps1 index 3f4fdd441..6d18c4831 100644 --- a/ContainerInfo/Test-NavContainer.ps1 +++ b/ContainerInfo/Test-NavContainer.ps1 @@ -23,7 +23,7 @@ try { $id = "" $a = "-a" if ($doNotIncludeStoppedContainers) { - $a = "" + $a = $null } $id = docker ps $a --no-trunc --format "{{.ID}}/{{.Names}}" | Where-Object { $containerName -eq $_.split('/')[1] } | ForEach-Object { $_.split('/')[0] }