JAEN

Docker

docker export / import

SafeExport a container filesystem

docker export <container> -o fs.tar

Dumps the container's filesystem as one flat tar (no layers/metadata) — unlike save/load, history is squashed.

Examples

  • docker export web01 -o fs.tar && docker import fs.tar web:flatRe-import as a single layer

Syntax

docker export <c> -o tar / docker import <tar> <name:tag>

Before you run it

Export only.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store