github.com/stchris/docker@v1.4.2-0.20150106053530-1510a324dbd5/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 [**-o**|**--output**[=*OUTPUT*]] 10 IMAGE [IMAGE...] 11 12 # DESCRIPTION 13 Produces a tarred repository to the standard output stream. Contains all 14 parent layers, and all tags + versions, or specified repo:tag. 15 16 Stream to a file instead of STDOUT by using **-o**. 17 18 # OPTIONS 19 **-o**, **--output**="" 20 Write to a file, instead of STDOUT 21 22 # EXAMPLES 23 24 Save all fedora repository images to a fedora-all.tar and save the latest 25 fedora image to a fedora-latest.tar: 26 27 $ sudo docker save fedora > fedora-all.tar 28 $ sudo docker save --output=fedora-latest.tar fedora:latest 29 $ ls -sh fedora-all.tar 30 721M fedora-all.tar 31 $ ls -sh fedora-latest.tar 32 367M fedora-latest.tar 33 34 # HISTORY 35 April 2014, Originally compiled by William Henry (whenry at redhat dot com) 36 based on docker.com source material and internal work. 37 June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au> 38 November 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>