docker save | Docker image file
Saveoneormoreimagestoatararchive(streamedtoSTDOUTbydefault)Usage$dockersave[OPTIONS]IMAGE[IMAGE...]Refertotheoptionssection[1]foranoverviewofavailableOPTIONS[2]forthiscommand.DescriptionProducesatarredrepositorytothestandardoutputstream.Containsallparentlayers,andalltags+versions,orspecifiedrepo:tag,foreachargumentprovided.Forexampleusesofthiscommand,refertotheexamplessection[3]below.OptionsName,shorthandDefaultDescription--output,-oWritetoafile,insteadofSTDOUTExamplesCreateabackupthatcanthe...
Save one or more images to a tar archive (streamed to STDOUT by default)
Usage $ docker save [OPTIONS] IMAGE [IMAGE...]Refer to the options section[1] for an overview of available OPTIONS[2] for this command.
DescriptionProduces a tarred repository to the standard output stream. Contains all parent layers, and all tags + versions, or specified repo:tag, for each argument provided.
For example uses of this command, refer to the examples section[3] below.
Options Name, shorthand Default Description --output , -o Write to a file, instead of STDOUT Examples Create a backup that can then be used with docker load. $ docker save busybox > busybox.tar $ ls -sh busybox.tar 2.7M busybox.tar $ docker save --output busybox.tar busybox $ ls -sh busybox.tar 2.7M busybox.tar $ docker save -o fedora-all.tar fedora $ docker save -o fedora-latest.tar fedora:latest Sav...