Add hidden podman manifest inspect -v option
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
c75b05996d
commit
00b2bc9b65
|
@ -30,7 +30,7 @@ func init() {
|
||||||
})
|
})
|
||||||
flags := inspectCmd.Flags()
|
flags := inspectCmd.Flags()
|
||||||
|
|
||||||
flags.Bool("verbose", false, "Added for Docker compatibility")
|
flags.BoolP("verbose", "v", false, "Added for Docker compatibility")
|
||||||
_ = flags.MarkHidden("verbose")
|
_ = flags.MarkHidden("verbose")
|
||||||
flags.BoolVar(&tlsVerifyCLI, "tls-verify", true, "require HTTPS and verify certificates when accessing the registry")
|
flags.BoolVar(&tlsVerifyCLI, "tls-verify", true, "require HTTPS and verify certificates when accessing the registry")
|
||||||
flags.Bool("insecure", false, "Purely for Docker compatibility")
|
flags.Bool("insecure", false, "Purely for Docker compatibility")
|
||||||
|
|
|
@ -10,7 +10,10 @@ load helpers
|
||||||
iid=$output
|
iid=$output
|
||||||
|
|
||||||
run_podman manifest create test:1.0
|
run_podman manifest create test:1.0
|
||||||
run_podman manifest inspect --verbose $output
|
mid=$output
|
||||||
|
run_podman manifest inspect --verbose $mid
|
||||||
|
is "$output" ".*\"mediaType\": \"application/vnd.docker.distribution.manifest.list.v2+json\"" "--insecure is a noop want to make sure manifest inspect is successful"
|
||||||
|
run_podman manifest inspect -v $mid
|
||||||
is "$output" ".*\"mediaType\": \"application/vnd.docker.distribution.manifest.list.v2+json\"" "--insecure is a noop want to make sure manifest inspect is successful"
|
is "$output" ".*\"mediaType\": \"application/vnd.docker.distribution.manifest.list.v2+json\"" "--insecure is a noop want to make sure manifest inspect is successful"
|
||||||
run_podman images --format '{{.ID}}' --no-trunc
|
run_podman images --format '{{.ID}}' --no-trunc
|
||||||
is "$output" ".*sha256:$iid" "Original image ID still shown in podman-images output"
|
is "$output" ".*sha256:$iid" "Original image ID still shown in podman-images output"
|
||||||
|
|
Loading…
Reference in New Issue