Skip to content

Commit

Permalink
Merge pull request containers#18351 from yanfeng1992/ManifestAnotateHelp
Browse files Browse the repository at this point in the history
fix: podman manifest annotate help example should use image digest
  • Loading branch information
openshift-merge-robot authored Apr 26, 2023
2 parents 846e7aa + e95e9be commit 0277adf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/podman/manifest/annotate.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var (
Long: "Adds or updates information about an entry in a manifest list or image index.",
RunE: annotate,
Args: cobra.ExactArgs(2),
Example: `podman manifest annotate --annotation left=right mylist:v1.11 image:v1.11-amd64`,
Example: `podman manifest annotate --annotation left=right mylist:v1.11 sha256:15352d97781ffdf357bf3459c037be3efac4133dc9070c2dce7eca7c05c3e736`,
ValidArgsFunction: common.AutocompleteImages,
}
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/podman/manifest/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var (
Example: `podman manifest add mylist:v1.11 image:v1.11-amd64
podman manifest create localhost/list
podman manifest inspect localhost/list
podman manifest annotate --annotation left=right mylist:v1.11 image:v1.11-amd64
podman manifest annotate --annotation left=right mylist:v1.11 sha256:15352d97781ffdf357bf3459c037be3efac4133dc9070c2dce7eca7c05c3e736
podman manifest push mylist:v1.11 docker://quay.io/myuser/image:v1.11
podman manifest remove mylist:v1.11 sha256:15352d97781ffdf357bf3459c037be3efac4133dc9070c2dce7eca7c05c3e736
podman manifest rm mylist:v1.11`,
Expand Down

0 comments on commit 0277adf

Please sign in to comment.