regclient
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

regctl image create

Synopsis

Create a new image manifest from an initially empty (scratch) state.

regctl image create <image_ref> [flags]

Aliases

  • init
  • new

Examples

# create a scratch image
regctl image create ocidir://new-image:scratch

Options

      --annotation stringArray   Annotation to set on manifest
      --by-digest                Push manifest by digest instead of tag
      --created string           Created timestamp to set (use "now" or RFC3339 syntax)
      --format string            Format output with go template syntax
      --label stringArray        Labels to set in the image config
      --media-type string        Media-type for manifest (default "application/vnd.oci.image.manifest.v1+json")
      --platform string          Platform to set on the image

Options from parent commands

      --host stringArray     Registry hosts to add (reg=registry,user=username,pass=password,tls=enabled)
      --logopt stringArray   Log options
      --user-agent string    Override user agent
  -v, --verbosity string     Log level (trace, debug, info, warn, error) (default "WARN")