docker-container-export(1)

docker-container-export1

Export a container's filesystem as a tar archive

Usage

docker container export [OPTIONS] CONTAINER

Overview

Export the contents of a container's filesystem using the full or shortened container ID or container name. The output is exported to STDOUT and can be redirected to a tar file.

Stream to a file instead of STDOUT by using -o.

Examples

Export the contents of the container called angry_bell to a tar file called angry_bell.tar:

$ docker export angry_bell > angry_bell.tar
$ docker export --output=angry_bell-latest.tar angry_bell
$ ls -sh angry_bell.tar
321M angry_bell.tar
$ ls -sh angry_bell-latest.tar
321M angry_bell-latest.tar

Options

-o, --output=""
Write to a file, instead of STDOUT

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From docker 1:29.9.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.