mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
477 B
Plaintext
22 lines
477 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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_export.md>.
|
|
|
|
- Write tarball to `stdout`:
|
|
|
|
`crane export {{image_name}} -`
|
|
|
|
- Write tarball to file:
|
|
|
|
`crane export {{image_name}} {{path/to/tarball}}`
|
|
|
|
- Read image from `stdin`:
|
|
|
|
`crane export - {{path/to/file}}`
|