Skip to content

Commit 1d1f0f9

Browse files
committed
DockerBuild.ps1: removed container killing before start.
1 parent 97cb43c commit 1d1f0f9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

DockerBuild.ps1

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,15 +1418,6 @@ $envVarAssignments$gitConfigCommands$postInitCommands
14181418
}
14191419
}
14201420

1421-
# If no existing container, remove any containers with same image to avoid conflicts
1422-
if (-not $existingContainerId)
1423-
{
1424-
docker ps -a -q --filter "ancestor=$ImageTag" | ForEach-Object {
1425-
Write-Host "Removing container $_"
1426-
docker rm -f $_ 2>&1 | Out-Null
1427-
}
1428-
}
1429-
14301421
# Registry authentication and pull logic
14311422
$builtNewImage = $false
14321423
$dockerConfigArg = @()

0 commit comments

Comments
 (0)