mirror of
https://github.com/containers/podman.git
synced 2025-05-20 00:27:03 +08:00
Merge pull request #16462 from rhatdan/manifest
Add hidden podman manifest inspect -v option
This commit is contained in:
@ -30,7 +30,7 @@ func init() {
|
||||
})
|
||||
flags := inspectCmd.Flags()
|
||||
|
||||
flags.Bool("verbose", false, "Added for Docker compatibility")
|
||||
flags.BoolP("verbose", "v", false, "Added for Docker compatibility")
|
||||
_ = flags.MarkHidden("verbose")
|
||||
flags.BoolVar(&tlsVerifyCLI, "tls-verify", true, "require HTTPS and verify certificates when accessing the registry")
|
||||
flags.Bool("insecure", false, "Purely for Docker compatibility")
|
||||
|
@ -10,7 +10,10 @@ load helpers
|
||||
iid=$output
|
||||
|
||||
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"
|
||||
run_podman images --format '{{.ID}}' --no-trunc
|
||||
is "$output" ".*sha256:$iid" "Original image ID still shown in podman-images output"
|
||||
|
Reference in New Issue
Block a user