diff --git a/commands/imagetools/inspect.go b/commands/imagetools/inspect.go index 0e2cf90c..d852d82a 100644 --- a/commands/imagetools/inspect.go +++ b/commands/imagetools/inspect.go @@ -38,7 +38,7 @@ func runInspect(dockerCli command.Cli, in inspectOptions, name string) error { // case images.MediaTypeDockerSchema2Manifest, specs.MediaTypeImageManifest: // TODO: handle distribution manifest and schema1 case images.MediaTypeDockerSchema2ManifestList, ocispec.MediaTypeImageIndex: - imagetools.PrintManifestList(dt, desc, name, os.Stdout) + return imagetools.PrintManifestList(dt, desc, name, os.Stdout) default: fmt.Printf("%s\n", dt) }