...

Text file src/github.com/google/go-containerregistry/cmd/crane/doc/crane_mutate.md

Documentation: github.com/google/go-containerregistry/cmd/crane/doc

     1## crane mutate
     2
     3Modify image labels and annotations. The container must be pushed to a registry, and the manifest is updated there.
     4
     5```
     6crane mutate [flags]
     7```
     8
     9### Options
    10
    11```
    12  -a, --annotation stringToString   New annotations to add (default [])
    13      --append strings              Path to tarball to append to image
    14      --cmd strings                 New cmd to set
    15      --entrypoint strings          New entrypoint to set
    16  -e, --env keyToValue              New envvar to add
    17      --exposed-ports strings       New ports to expose
    18  -h, --help                        help for mutate
    19  -l, --label stringToString        New labels to add (default [])
    20  -o, --output string               Path to new tarball of resulting image
    21      --repo string                 Repository to push the mutated image to. If provided, push by digest to this repository.
    22  -t, --tag string                  New tag reference to apply to mutated image. If not provided, push by digest to the original image repository.
    23  -u, --user string                 New user to set
    24  -w, --workdir string              New working dir to set
    25```
    26
    27### Options inherited from parent commands
    28
    29```
    30      --allow-nondistributable-artifacts   Allow pushing non-distributable (foreign) layers
    31      --insecure                           Allow image references to be fetched without TLS
    32      --platform platform                  Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default all)
    33  -v, --verbose                            Enable debug logs
    34```
    35
    36### SEE ALSO
    37
    38* [crane](crane.md)	 - Crane is a tool for managing container images
    39

View as plain text