Difference between revisions of "Docker export"

From wikieduonline
Jump to navigation Jump to search
Line 8: Line 8:
 
  docker export container-name | container-name.tar
 
  docker export container-name | container-name.tar
 
  zcat container-name.gz | [[docker import]] - container-name
 
  zcat container-name.gz | [[docker import]] - container-name
 +
 +
 +
* [[List files]]: <code>[[docker export]] your-image | [[tar t]]</code>
  
 
== Related terms ==
 
== Related terms ==

Revision as of 15:41, 22 February 2023

docker export export a container’s filesystem as a tar archive


docker export container-name | gzip > container-name.gz
docker export container-name | container-name.tar
zcat container-name.gz | docker import - container-name


Related terms

See also

Advertising: