2025-03-14 21:59:59 -06:00
|
|
|
# crane rebase
|
|
|
|
|
|
|
|
|
|
> Rebase an image onto a new base image.
|
|
|
|
|
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_rebase.md>.
|
|
|
|
|
|
|
|
|
|
- Rebase image:
|
|
|
|
|
|
|
|
|
|
`crane rebase`
|
|
|
|
|
|
|
|
|
|
- New base image to insert:
|
|
|
|
|
|
|
|
|
|
`crane rebase --new_base {{image_name}}`
|
|
|
|
|
|
|
|
|
|
- Old base image to remove:
|
|
|
|
|
|
|
|
|
|
`crane rebase --old_base {{image_name}}`
|
|
|
|
|
|
|
|
|
|
- Tag to apply to rebased image:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`crane rebase {{[-t|--tag]}} {{tag_name}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`crane rebase {{[-h|--help]}}`
|