Last active
August 7, 2018 16:20
-
-
Save bashkirtsevich/e1f93419720979e96f5908caea0d1ae6 to your computer and use it in GitHub Desktop.
Compress docker image to tgz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker save $(docker images -q) | gzip -c > all_images.tgz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker save image_name | gzip -c > image_name.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gunzip -c image_name.tgz | docker load |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment