From e2f3e310c322853e12f990f1cc87fc25d794fe1f Mon Sep 17 00:00:00 2001 From: Phil Estes Date: Thu, 21 Sep 2017 15:26:21 -0400 Subject: [PATCH] Make WithCheckpoint() work with manifest list images Simple change to allow checkpoint image references to be manifest list images. Signed-off-by: Phil Estes --- container_opts_unix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container_opts_unix.go b/container_opts_unix.go index 961ce720d..51fca9df5 100644 --- a/container_opts_unix.go +++ b/container_opts_unix.go @@ -38,7 +38,7 @@ func WithCheckpoint(desc v1.Descriptor, snapshotKey string) NewContainerOpts { case v1.MediaTypeImageLayer: fk := m rw = &fk - case images.MediaTypeDockerSchema2Manifest: + case images.MediaTypeDockerSchema2Manifest, images.MediaTypeDockerSchema2ManifestList: config, err := images.Config(ctx, store, m, platforms.Default()) if err != nil { return err