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

NAME

6       docker-save - Save one or more images to a tar archive (streamed to
7       STDOUT by default)
8
9
10

SYNOPSIS

12       docker save [--help] [-o|--output[=OUTPUT]] IMAGE [IMAGE...]
13
14
15

DESCRIPTION

17       Produces a tarred repository to the standard output stream. Contains
18       all parent layers, and all tags + versions, or specified repo:tag.
19
20
21       Stream to a file instead of STDOUT by using -o.
22
23
24

OPTIONS

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

EXAMPLES

36       Save all fedora repository images to a fedora-all.tar and save the
37       latest fedora image to a fedora-latest.tar:
38
39
40              $ docker save fedora > fedora-all.tar
41              $ docker save --output=fedora-latest.tar fedora:latest
42              $ ls -sh fedora-all.tar
43              721M fedora-all.tar
44              $ ls -sh fedora-latest.tar
45              367M fedora-latest.tar
46
47
48
49

See also

51       docker-load(1) to load an image from a tar archive on STDIN.
52
53
54

HISTORY

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