crane mutate
all
Modify image labels and annotations. The container must be pushed to a registry, and the manifest is updated there.
More info →Options (8)
-a, --annotationbooleanNew annotations to set (default [])
Example:
crane mutate {{[-a|--annotation]}}/{{[-l|--label]}} {{annotation/label}}-l, --labelbooleanNew annotations to set (default [])
Example:
crane mutate {{[-a|--annotation]}}/{{[-l|--label]}} {{annotation/label}}-e, --envbooleanPath to tarball/command/entrypoint/environment variable/exposed-ports to append to image
Example:
crane mutate {{--append}}/{{--cmd}}/{{--entrypoint}}/{{[-e|--env]}}/{{--exposed-ports}} {{var1 var2 ...}}-o, --outputbooleanPath to new tarball of resulting image
Example:
crane mutate {{[-o|--output]}} {{path/to/tarball}}-t, --tagbooleanNew tag reference to apply to mutated image
Example:
crane mutate {{[-t|--tag]}} {{tag_name}}-u, --userbooleanNew user to set
Example:
crane mutate {{[-u|--user]}} {{username}}-w, --workdirbooleanNew working dir to set
Example:
crane mutate {{[-w|--workdir]}} {{path/to/work_directory}}-h, --helpbooleanDisplay help
Example:
crane mutate {{[-h|--help]}}Examples (8)
New annotations to set (default [])
crane mutate [-a|--annotation]/[-l|--label] annotation/labelPath to tarball/command/entrypoint/environment variable/exposed-ports to append to image
crane mutate --append/--cmd/--entrypoint/[-e|--env]/--exposed-ports var1 var2 ...Path to new tarball of resulting image
crane mutate [-o|--output] path/to/tarballRepository in the form `os/arch/variant:osversion,platform` to push mutated image
crane mutate --set-platform platform_nameNew tag reference to apply to mutated image
crane mutate [-t|--tag] tag_nameNew user to set
crane mutate [-u|--user] usernameNew working dir to set
crane mutate [-w|--workdir] path/to/work_directoryDisplay help
crane mutate [-h|--help]made by @shridhargupta | data from tldr-pages