Difference between revisions of "Crane export"
Jump to navigation
Jump to search
(Created page with " docker save") |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lc}} | ||
+ | crane export yourimage yourimage.tar | ||
[[docker save]] | [[docker save]] | ||
+ | |||
+ | |||
+ | |||
+ | <pre> | ||
+ | crane export --help | ||
+ | Export filesystem of a container image as a tarball | ||
+ | |||
+ | Usage: | ||
+ | crane export IMAGE|- TARBALL|- [flags] | ||
+ | |||
+ | Examples: | ||
+ | # Write tarball to stdout | ||
+ | crane export ubuntu - | ||
+ | |||
+ | # Write tarball to file | ||
+ | crane export ubuntu ubuntu.tar | ||
+ | |||
+ | # Read image from stdin | ||
+ | crane export - ubuntu.tar | ||
+ | |||
+ | Flags: | ||
+ | -h, --help help for export | ||
+ | |||
+ | Global Flags: | ||
+ | --allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers | ||
+ | --insecure Allow image references to be fetched without TLS | ||
+ | --platform platform Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default all) | ||
+ | -v, --verbose Enable debug logs | ||
+ | </pre> | ||
+ | |||
+ | == Related == | ||
+ | * [[Docker image management]] | ||
+ | |||
+ | == See also == | ||
+ | * {{crane}} | ||
+ | |||
+ | [[Category:Container]] |
Latest revision as of 13:15, 26 April 2023
crane export yourimage yourimage.tar
docker save
crane export --help Export filesystem of a container image as a tarball Usage: crane export IMAGE|- TARBALL|- [flags] Examples: # Write tarball to stdout crane export ubuntu - # Write tarball to file crane export ubuntu ubuntu.tar # Read image from stdin crane export - ubuntu.tar Flags: -h, --help help for export Global Flags: --allow-nondistributable-artifacts Allow pushing non-distributable (foreign) layers --insecure Allow image references to be fetched without TLS --platform platform Specifies the platform in the form os/arch[/variant][:osversion] (e.g. linux/amd64). (default all) -v, --verbose Enable debug logs
Related[edit]
See also[edit]
Advertising: