@@ -161,7 +161,7 @@ Function Nuke-Everything {
161161 }
162162
163163 $allImages = $ (docker images -- format " {{.Repository}}#{{.ID}}" )
164- $toRemove = ($allImages | Select-String -NotMatch " servercore" , " nanoserver" , " docker" )
164+ $toRemove = ($allImages | Select-String -NotMatch " servercore" , " nanoserver" , " docker" , " busybox " )
165165 $imageCount = ($toRemove | Measure-Object - line).Lines
166166
167167 if ($imageCount -gt 0 ) {
@@ -827,23 +827,13 @@ Try {
827827 # Add the Windows busybox image. Needed for WCOW integration tests
828828 if (($null -eq $env: LCOW_MODE ) -and ($null -eq $env: LCOW_BASIC_MODE )) {
829829 if ($null -eq $env: SKIP_INTEGRATION_TESTS ) {
830+ Write-Host - ForegroundColor Green " INFO: Building busybox"
830831 $ErrorActionPreference = " SilentlyContinue"
831- # Build it regardless while switching between nanoserver and windowsservercore
832- # $bbCount = $(& "$env:TEMP\binary\docker-$COMMITHASH" "-H=$($DASHH_CUT)" images | Select-String "busybox" | Measure-Object -line).Lines
833- # $ErrorActionPreference = "Stop"
834- # if (-not($LastExitCode -eq 0)) {
835- # Throw "ERROR: Could not determine if busybox image is present"
836- # }
837- # if ($bbCount -eq 0) {
838- Write-Host - ForegroundColor Green " INFO: Building busybox"
839- $ErrorActionPreference = " SilentlyContinue"
840- $ (& " $env: TEMP \binary\docker-$COMMITHASH " " -H=$ ( $DASHH_CUT ) " build - t busybox https:// raw.githubusercontent.com / moby/ busybox/ v1.1 / Dockerfile | Out-Host )
841- $ErrorActionPreference = " Stop"
842- if (-not ($LastExitCode -eq 0 )) {
843- Throw " ERROR: Failed to build busybox image"
844- }
845- # }
846-
832+ $ (& " $env: TEMP \binary\docker-$COMMITHASH " " -H=$ ( $DASHH_CUT ) " build - t busybox -- build-arg WINDOWS_BASE_IMAGE -- build-arg WINDOWS_BASE_IMAGE_TAG " $env: SOURCES_DRIVE `:\$env: SOURCES_SUBDIR \src\github.com\docker\docker\contrib\busybox\" | Out-Host )
833+ $ErrorActionPreference = " Stop"
834+ if (-not ($LastExitCode -eq 0 )) {
835+ Throw " ERROR: Failed to build busybox image"
836+ }
847837
848838 Write-Host - ForegroundColor Green " INFO: Docker images of the daemon under test"
849839 Write-Host
0 commit comments