LinuxCommandLibrary

crane-mutate

modify image metadata without rebuilding

TLDR

Add labels to an image

$ crane mutate [image] --label [key=value] -t [new:tag]
copy
Set entrypoint
$ crane mutate [image] --entrypoint [/app/start] -t [new:tag]
copy
Add environment variables
$ crane mutate [image] --env [KEY=value] -t [new:tag]
copy

SYNOPSIS

crane mutate [options] image

DESCRIPTION

crane mutate modifies container image configuration without rebuilding. It can change labels, entrypoint, environment variables, and other metadata.

PARAMETERS

-t, --tag tag

Tag for the mutated image.
--label key=value
Add or override a label.
--entrypoint cmd
Set the entrypoint.
--cmd cmd
Set the command.
--env key=value
Add environment variable.
--user user
Set the user.
--workdir dir
Set the working directory.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community