give `docker save` a gzip usage guide (#1678)

give `docker save` a gzip usage guide

Signed-off-by: Ao Li <la9249@163.com>
This commit is contained in:
leonGravel 2019-03-22 05:49:21 +08:00 committed by Tõnis Tiigi
parent dca6d2afa1
commit 95ce54a8de
1 changed files with 8 additions and 0 deletions

View File

@ -53,6 +53,14 @@ $ docker save -o fedora-all.tar fedora
$ docker save -o fedora-latest.tar fedora:latest
```
### Save an image to a tar.gz file using gzip
You can use gzip to save the image file and make the backup smaller.
```bash
docker save myimage:latest | gzip > myimage_latest.tar.gz
```
### Cherry-pick particular tags
You can even cherry-pick particular tags of an image repository.