Created
February 22, 2020 03:03
-
-
Save lazidoca/0bd3383157102c07e199c2aa44d599ee to your computer and use it in GitHub Desktop.
Save multiple docker images
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
IDS=$(docker images | awk '{if ($1 ~ /^(debian|centos)/) print $3}') | |
docker save $IDS -o /path/to/save/somedockersimages.tar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment