Difference between revisions of "Docker export"

From wikieduonline
Jump to navigation Jump to search
 
(16 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lc}}
Export a container’s filesystem as a [[tar]] archive
+
<code>docker export</code> export a container’s filesystem as a [[tar]] archive
 
* https://docs.docker.com/engine/reference/commandline/export/
 
* https://docs.docker.com/engine/reference/commandline/export/
  
  
 +
 +
docker export container-name | gzip > container-name.gz
 +
docker export container-name > container-name.tar
 +
zcat container-name.gz | [[docker import]] - container-name
 +
 +
 +
* [[List files]]: <code>[[docker export]] [[your-container]] | [[tar t]]</code>
 +
 +
Error response from daemon: No such container: image_instead_of_container
 +
 +
cowardly refusing to save to a terminal. Use the -o flag or redirect
 +
 +
== Related terms ==
 +
* <code>[[docker save]]</code>
 +
* <code>[[docker load]]</code>
 +
* [[Backup docker containers]]
 +
* <code>[[docker cp]]</code>
  
 
== See also ==
 
== See also ==
* {{docker}}
+
* {{docker images}}
 +
 
 +
 
 +
[[Category:Docker]]

Latest revision as of 10:03, 26 April 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


Error response from daemon: No such container: image_instead_of_container
cowardly refusing to save to a terminal. Use the -o flag or redirect

Related terms[edit]

See also[edit]

Advertising: