Linux command
crane-append 命令
文件
复制后可按需替换文件名、目录或参数。
常用示例
Append a layer
crane append -b [base_image] -f [layer.tar.gz] -t [new_image:tag]
Append from file
crane append --base [gcr.io/project/image] --new_layer [layer.tar] --new_tag [gcr.io/project/image:v2]
说明
crane append adds a new layer to an existing container image without pulling the entire image. This is useful for adding files or configuration to existing images efficiently. Part of the crane CLI tool for container registry operations.
参数
- -b, --base _image_
- Base image to append to.
- -f, --new_layer _file_
- Layer tarball to append.
- -t, --new_tag _image_
- Tag for the resulting image.
FAQ
What is the crane-append command used for?
crane append adds a new layer to an existing container image without pulling the entire image. This is useful for adding files or configuration to existing images efficiently. Part of the crane CLI tool for container registry operations.
How do I run a basic crane-append example?
Run `crane append -b [base_image] -f [layer.tar.gz] -t [new_image:tag]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -b, --base _image_ do in crane-append?
Base image to append to.