Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
Xiaoxuan Wang committed Sep 12, 2024
1 parent a61f83d commit 2652246
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/oras/root/manifest/index/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ type createOptions struct {
option.Common
option.Packer
option.Target
option.Pretty

sources []string
extraRefs []string
Expand All @@ -71,6 +70,9 @@ Example - create an index from source manifests using both tags and digests, and
Example - create an index and push it with multiple tags:
oras manifest index create localhost:5000/hello:tag1,tag2,tag3 linux-amd64 linux-arm64 sha256:99e4703fbf30916f549cd6bfa9cdbab614b5392fbe64fdee971359a77073cdf9
Example - create an index and push to an OCI image layout folder 'layout-dir' and tag with 'v1':
oras manifest index create layout-dir:v1 linux-amd64 sha256:99e4703fbf30916f549cd6bfa9cdbab614b5392fbe64fdee971359a77073cdf9
Example - create an index and export it to index.json, auto push will be disabled:
oras manifest index create --export-manifest index.json localhost:5000/hello linux-amd64 linux-arm64
`,
Expand Down

0 comments on commit 2652246

Please sign in to comment.