Skip to content

Commit 5721cd8

Browse files
committed
add image for containerd
1 parent 8c4672a commit 5721cd8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/integration/functional_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,11 @@ func validateLoadImage(ctx context.Context, t *testing.T, profile string) {
194194
var cmd *exec.Cmd
195195
if ContainerRuntime() == "docker" {
196196
cmd = exec.CommandContext(ctx, Target(), "ssh", "-p", profile, "--", "docker", "image", "inspect", newImage)
197+
} else if ContainerRuntime() == "containerd" {
198+
// crictl inspecti busybox:test-example
199+
cmd = exec.CommandContext(ctx, Target(), "ssh", "-p", profile, "--", "sudo", "crictl", "inspecti", newImage)
197200
} else {
201+
// crio adds localhost prefix
198202
// crictl inspecti localhost/busybox:test-example
199203
cmd = exec.CommandContext(ctx, Target(), "ssh", "-p", profile, "--", "sudo", "crictl", "inspecti", "localhost/"+newImage)
200204
}

0 commit comments

Comments
 (0)