Browse code

Document that load supports compressed tarballs.

As per
https://github.com/docker/docker/blob/ecdbf868842f702e2b824aa1e11097809d48a659/pkg/archive/archive.go#L96

Signed-off-by: Andy Rothfusz <github@developersupport.net>

Andy Rothfusz authored on 2015/07/15 07:43:59
Showing 1 changed files
... ...
@@ -15,14 +15,14 @@ weight=1
15 15
 
16 16
     Load an image from a tar archive or STDIN
17 17
 
18
-      -i, --input=""     Read from a tar archive file, instead of STDIN
18
+      -i, --input=""     Read from a tar archive file, instead of STDIN. The tarball may be compressed with gzip, bzip, or xz
19 19
 
20 20
 Loads a tarred repository from a file or the standard input stream.
21 21
 Restores both images and tags.
22 22
 
23 23
     $ docker images
24 24
     REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
25
-    $ docker load < busybox.tar
25
+    $ docker load < busybox.tar.gz
26 26
     $ docker images
27 27
     REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
28 28
     busybox             latest              769b9341d937        7 weeks ago         2.489 MB