Docker export: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
=External=
* https://docs.docker.com/engine/reference/commandline/export/
=Internal=
=Internal=


* [[Docker_Concepts#Difference_Between_Containers_and_Images_-_a_Writable_Layer|Docker Concepts | Difference Between Containers and Images - a Writable Layer]]
* [[Docker_Client_Operations#Export_the_Filesystem|Image Operations]]
* [[Docker_Client_Operations#Export_the_Filesystem|Image Operations]]


=Overview=
=Overview=


Exports a container's file system as a tar archive.
Exports a container's file system as a tar archive (it only works with containers, not images).


  docker export <''container-id''> -o /tmp/fs.tar
  docker export <''container-id''> -o /tmp/fs.tar


Both running and stopping containers can be exported this way.
Both running and stopping containers can be exported this way.

Latest revision as of 02:46, 2 January 2021

External

Internal

Overview

Exports a container's file system as a tar archive (it only works with containers, not images).

docker export <container-id> -o /tmp/fs.tar

Both running and stopping containers can be exported this way.