Use a pinned tag of stefanscherer/busybox-windows

This commit is contained in:
Mahmood Ali
2020-05-15 12:20:37 -04:00
parent 0dbd22e260
commit 4c679d4c64
3 changed files with 4 additions and 4 deletions

View File

@@ -18,9 +18,9 @@ import (
func testContainerDetails() (image string, imageName string, imageTag string) {
if runtime.GOOS == "windows" {
return "stefanscherer/busybox-windows:latest",
return "stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b",
"stefanscherer/busybox-windows",
"latest"
"sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b"
}
return "busybox:1", "busybox", "1"

View File

@@ -455,7 +455,7 @@ func TestDockerDriver_Start_StoppedContainer(t *testing.T) {
if runtime.GOOS != "windows" {
imageID, err = d.Impl().(*Driver).loadImage(task, &taskCfg, client)
} else {
image, lErr := client.InspectImage("stefanscherer/busybox-windows:latest")
image, lErr := client.InspectImage("stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b")
err = lErr
if image != nil {
imageID = image.ID

View File

@@ -11,7 +11,7 @@ import (
func newTaskConfig(variant string, command []string) TaskConfig {
// busyboxImageID is an id of an image containing nanoserver windows and
// a busybox exe.
busyboxImageID := "stefanscherer/busybox-windows:latest"
busyboxImageID := "stefanscherer/busybox-windows@sha256:af396324c4c62e369a388ebb38d4efd44211dc7c95a438e6feb62b4ae4194c5b"
return TaskConfig{
Image: busyboxImageID,