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 and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store