crane-mutate
Modify image labels and annotations. tldr-pages
On several platforms
Several platforms
Modify image labels and annotations. The container must be pushed to a registry, and the manifest is updated there.
Set new annotations or labels
crane mutate --annotation/--label annotation/labelIdentifyAppend a tarball, or set the command/entrypoint/environment variables/exposed ports of an image
crane mutate --append/--cmd/--entrypoint/--env/--exposed-ports var1 var2 ...IdentifyWrite the resulting image to a new tarball
crane mutate --output path/to/tarballIdentifySet the platform of the mutated image in the form os/arch/variant:osversion,platform
crane mutate --set-platform platform_nameIdentifyApply a new tag reference to the mutated image
crane mutate --tag tag_nameIdentifySet a new user
crane mutate --user usernameIdentifySet a new working directory
crane mutate --workdir path/to/work_directoryIdentifyDisplay help
crane mutate --helpIdentify