github.com/feiyang21687/docker@v1.5.0/docs/man/docker-save.1.md (about) 1 % DOCKER(1) Docker User Manuals 2 % Docker Community 3 % JUNE 2014 4 # NAME 5 docker-save - Save an image(s) to a tar archive (streamed to STDOUT by default) 6 7 # SYNOPSIS 8 **docker save** 9 [**--help**] 10 [**-o**|**--output**[=*OUTPUT*]] 11 IMAGE [IMAGE...] 12 13 # DESCRIPTION 14 Produces a tarred repository to the standard output stream. Contains all 15 parent layers, and all tags + versions, or specified repo:tag. 16 17 Stream to a file instead of STDOUT by using **-o**. 18 19 # OPTIONS 20 **--help** 21 Print usage statement 22 23 **-o**, **--output**="" 24 Write to a file, instead of STDOUT 25 26 # EXAMPLES 27 28 Save all fedora repository images to a fedora-all.tar and save the latest 29 fedora image to a fedora-latest.tar: 30 31 $ sudo docker save fedora > fedora-all.tar 32 $ sudo docker save --output=fedora-latest.tar fedora:latest 33 $ ls -sh fedora-all.tar 34 721M fedora-all.tar 35 $ ls -sh fedora-latest.tar 36 367M fedora-latest.tar 37 38 # HISTORY 39 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 40 based on docker.com source material and internal work. 41 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 42 November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>