mirror of
https://github.com/wsargent/docker-cheat-sheet.git
synced 2025-09-22 05:40:50 +02:00
Update README.md
Use gzip for compress images, container when export.
This commit is contained in:
parent
eb996d5b6e
commit
eaa4b50247
1 changed files with 2 additions and 2 deletions
|
@ -236,7 +236,7 @@ docker load < my_image.tar.gz
|
|||
|
||||
Save an existing image:
|
||||
```
|
||||
docker save my_image:my_tag > my_image.tar.gz
|
||||
docker save my_image:my_tag | gzip > my_image.tar.gz
|
||||
```
|
||||
|
||||
### Import/Export container
|
||||
|
@ -248,7 +248,7 @@ cat my_container.tar.gz | docker import - my_image:my_tag
|
|||
|
||||
Export an existing container:
|
||||
```
|
||||
docker export my_container > my_container.tar.gz
|
||||
docker export my_container | gzip > my_container.tar.gz
|
||||
```
|
||||
|
||||
### Difference between loading a saved image and importing an exported container as an image ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue