Ver Fonte

Merge pull request #14637 from metalivedev/patch-1

Document that load supports compressed tarballs.
Sebastiaan van Stijn há 10 anos atrás
pai
commit
86c7ea4863
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      docs/reference/commandline/load.md

+ 2 - 2
docs/reference/commandline/load.md

@@ -15,14 +15,14 @@ weight=1
 
     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.
 Restores both images and tags.
 
     $ docker images
     REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
-    $ docker load < busybox.tar
+    $ docker load < busybox.tar.gz
     $ docker images
     REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
     busybox             latest              769b9341d937        7 weeks ago         2.489 MB