1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/crane-export.md

17 lines
388 B
Markdown
Raw Normal View History

2024-10-03 11:48:34 +02:00
# crane export
> Export filesystem of a container image as a tarball.
> More information: <https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane_digest.md>.
- Write tarball to `stdout`:
2024-10-03 11:48:34 +02:00
`crane export {{image_name}} -`
- Write tarball to file:
`crane export {{image_name}} {{path/to/tarball}}`
- Read image from `stdin`:
2024-10-03 11:48:34 +02:00
`crane export - {{path/to/filename}}`