Merge pull request #569 from thaJeztah/dont_discard_manifest_errors

imagetools inspect: don't discard errors from PrintManifestList
pull/570/head
Tõnis Tiigi 4 years ago committed by GitHub
commit 2d86ddd37f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save