1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Document that load supports compressed tarballs.

As per
ecdbf86884/pkg/archive/archive.go (L96)

Signed-off-by: Andy Rothfusz <github@developersupport.net>
This commit is contained in:
Andy Rothfusz 2015-07-14 15:43:59 -07:00
parent c7d4a4b2b4
commit 918229cbdf

View file

@ -15,14 +15,14 @@ weight=1
Load an image from a tar archive or STDIN Load an image from a tar archive or STDIN
-i, --input="" Read from a tar archive file, instead of STDIN -i, --input="" Read from a tar archive file, instead of STDIN. The tarball may be compressed with gzip, bzip, or xz
Loads a tarred repository from a file or the standard input stream. Loads a tarred repository from a file or the standard input stream.
Restores both images and tags. Restores both images and tags.
$ docker images $ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
$ docker load < busybox.tar $ docker load < busybox.tar.gz
$ docker images $ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
busybox latest 769b9341d937 7 weeks ago 2.489 MB busybox latest 769b9341d937 7 weeks ago 2.489 MB