summaryrefslogtreecommitdiff
path: root/docs/reference/commandline/load.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference/commandline/load.md')
-rw-r--r--docs/reference/commandline/load.md57
1 files changed, 33 insertions, 24 deletions
diff --git a/docs/reference/commandline/load.md b/docs/reference/commandline/load.md
index 04a5bc7e56..3ce6c19e24 100644
--- a/docs/reference/commandline/load.md
+++ b/docs/reference/commandline/load.md
@@ -26,28 +26,37 @@ Options:
The tarball may be compressed with gzip, bzip, or xz
-q, --quiet Suppress the load output but still outputs the imported images
```
+## Description
-Loads a tarred repository from a file or the standard input stream.
-Restores both images and tags.
-
- $ docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- $ docker load < busybox.tar.gz
- # […]
- Loaded image: busybox:latest
- $ docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- busybox latest 769b9341d937 7 weeks ago 2.489 MB
- $ docker load --input fedora.tar
- # […]
- Loaded image: fedora:rawhide
- # […]
- Loaded image: fedora:20
- # […]
- $ docker images
- REPOSITORY TAG IMAGE ID CREATED SIZE
- busybox latest 769b9341d937 7 weeks ago 2.489 MB
- fedora rawhide 0d20aec6529d 7 weeks ago 387 MB
- fedora 20 58394af37342 7 weeks ago 385.5 MB
- fedora heisenbug 58394af37342 7 weeks ago 385.5 MB
- fedora latest 58394af37342 7 weeks ago 385.5 MB
+`docker load` loads a tarred repository from a file or the standard input stream.
+It restores both images and tags.
+
+## Examples
+
+```bash
+$ docker images
+
+REPOSITORY TAG IMAGE ID CREATED SIZE
+
+$ docker load < busybox.tar.gz
+
+Loaded image: busybox:latest
+$ docker images
+REPOSITORY TAG IMAGE ID CREATED SIZE
+busybox latest 769b9341d937 7 weeks ago 2.489 MB
+
+$ docker load --input fedora.tar
+
+Loaded image: fedora:rawhide
+
+Loaded image: fedora:20
+
+$ docker images
+
+REPOSITORY TAG IMAGE ID CREATED SIZE
+busybox latest 769b9341d937 7 weeks ago 2.489 MB
+fedora rawhide 0d20aec6529d 7 weeks ago 387 MB
+fedora 20 58394af37342 7 weeks ago 385.5 MB
+fedora heisenbug 58394af37342 7 weeks ago 385.5 MB
+fedora latest 58394af37342 7 weeks ago 385.5 MB
+```