Docker export: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 9: | Line 9: | ||
=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. |
Revision as of 18:27, 5 December 2017
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.