1DOCKER(1)                          JUNE 2014                         DOCKER(1)
2
3
4

NAME

6       docker-export - Export the contents of a container's filesystem as a
7       tar archive
8
9
10

SYNOPSIS

12       docker export [--help] [-o|--output[=""]] CONTAINER
13
14
15

DESCRIPTION

17       Export the contents of a container's filesystem using the full or
18       shortened container ID or container name. The output is exported to
19       STDOUT and can be redirected to a tar file.
20
21
22       Stream to a file instead of STDOUT by using -o.
23
24
25

OPTIONS

27       --help
28         Print usage statement
29
30
31       -o, --output=""
32         Write to a file, instead of STDOUT
33
34
35

EXAMPLES

37       Export the contents of the container called angry_bell to a tar file
38       called angry_bell.tar:
39
40
41              # docker export angry_bell > angry_bell.tar
42              # docker export --output=angry_bell-latest.tar angry_bell
43              # ls -sh angry_bell.tar
44              321M angry_bell.tar
45              # ls -sh angry_bell-latest.tar
46              321M angry_bell-latest.tar
47
48
49
50

See also

52       docker-import(1) to create an empty filesystem image and import the
53       contents of the tarball into it, then optionally tag it.
54
55
56

HISTORY

58       April 2014, Originally compiled by William Henry (whenry at redhat dot
59       com) based on docker.com source material and internal work.  June 2014,
60       updated by Sven Dowideit ⟨SvenDowideit@home.org.au⟩ January 2015,
61       updated by Joseph Kern (josephakern at gmail dot com)
62
63
64
65Docker Community              Docker User Manuals                    DOCKER(1)
Impressum