2024-10-03 11:48:34 +02:00
|
|
|
# crane append
|
|
|
|
|
|
|
|
> Push an image based on an (optional) base image.
|
|
|
|
> Appends layers containing the contents of the provided tarballs.
|
|
|
|
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_append.md>.
|
|
|
|
|
|
|
|
- Push image based on a base image:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane append {{[-b|--base]}} {{image_name}}`
|
2024-10-03 11:48:34 +02:00
|
|
|
|
|
|
|
- Push image with appended layer from tarball:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane append {{[-f|--new_layer]}} {{layer_name1 layer_name2 ...}}`
|
2024-10-03 11:48:34 +02:00
|
|
|
|
|
|
|
- Push image with appended layer with new tag:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane append {{[-t|--new_tag]}} {{tag_name}}`
|
2024-10-03 11:48:34 +02:00
|
|
|
|
|
|
|
- Push resulting image to new tarball:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane append {{[-o|--output]}} {{path/to/tarball}}`
|
2024-10-03 11:48:34 +02:00
|
|
|
|
|
|
|
- Use empty base image of type OCI media instead of Docker:
|
|
|
|
|
|
|
|
`crane append --oci-empty-base`
|
|
|
|
|
|
|
|
- Annotate resulting image as being based on the base image:
|
|
|
|
|
|
|
|
`crane append --set-base-image-annotations`
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
2025-03-08 16:43:04 +02:00
|
|
|
`crane append {{[-h|--help]}}`
|