LinuxCommandLibrary

crane-rebase

replace base layers of an image

TLDR

Rebase an image onto a new base

$ crane rebase [image:tag] --old_base [old:base] --new_base [new:base] -t [rebased:tag]
copy

SYNOPSIS

crane rebase [options] image

DESCRIPTION

crane rebase replaces the base layers of an image with layers from a different base image. This is useful for updating base images without rebuilding.

PARAMETERS

--old_base image

Original base image.
--new_base image
New base image.
-t, --tag tag
Tag for the rebased image.

CAVEATS

Requires that the old base layers exactly match layers in the image. May not work if the image was built with modifications to base layers.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community