Docker export: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
=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.