mirror of
https://github.com/docker/cli.git
synced 2025-08-01 04:26:55 +03:00
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:
@ -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.
|
||||
|
Reference in New Issue
Block a user