CmdID

CmdID / Commands

crane-mutate

Modify image labels and annotations. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

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/labelIdentify

Append a tarball, or set the command/entrypoint/environment variables/exposed ports of an image

crane mutate --append/--cmd/--entrypoint/--env/--exposed-ports var1 var2 ...Identify

Write the resulting image to a new tarball

crane mutate --output path/to/tarballIdentify

Set the platform of the mutated image in the form os/arch/variant:osversion,platform

crane mutate --set-platform platform_nameIdentify

Apply a new tag reference to the mutated image

crane mutate --tag tag_nameIdentify

Set a new user

crane mutate --user usernameIdentify

Set a new working directory

crane mutate --workdir path/to/work_directoryIdentify

Display help

crane mutate --helpIdentify