canasta image unset-build-arg

From Canasta Wiki

canasta > image > unset-build-arg

canasta image unset-build-arg

Remove build arguments of an instance built from source and rebuild it

Synopsis

Remove one or more build arguments, by key, from an instance created with canasta create --build-from, then rebuild the instance's image without them and restart the instance onto it. A key that is not recorded is reported and otherwise ignored.

Without a BASE_IMAGE build argument, the image builds on the auto-detected base: the local CanastaBase build when CanastaBase/ is in the source directory, else the published CanastaBase image for Canasta source and the current Canasta release image for an overlay.

The rebuild, recording and restart behave as for canasta image set-build-arg, including --no-rebuild.

canasta image unset-build-arg [flags] KEYS...

Examples

canasta image unset-build-arg MW_VERSION
canasta image unset-build-arg -i mywiki BASE_IMAGE --no-rebuild

Arguments

Argument Description Default Required Orchestrator
KEYS Key(s) of the build argument(s) to remove ✓ Both

Flags

Flag Shorthand Description Default Required Orchestrator
--id -i Canasta instance ID * Both
--no-rebuild Record the change without rebuilding the image Both

* Defaults to the Canasta instance matching the current directory, if any.

Global flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both