Files
tldr/pages.zh/common/crane-export.md

16 lines
396 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# crane 导出
> 将容器镜像的文件系统导出为 tarball。
> 更多信息:<https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_digest.md>。
- 将 tarball 写入 `stdout`
`crane export {{image_name}} -`
- 将 tarball 写入文件:
`crane export {{image_name}} {{path/to/tarball}}`
-`stdin` 读取镜像:
`crane export - {{path/to/filename}}`