Created
June 22, 2018 08:32
-
-
Save bynil/57643b0b864099b104f71299a5eb442a to your computer and use it in GitHub Desktop.
This file contains 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 images | tail --lines=+2 | while read LINE ; do | |
REPO=`echo ${LINE} | awk '{print $1}'` | |
TAG=`echo ${LINE} | awk '{print $2}'` | |
ID=`echo ${LINE} | awk '{print $3}'` | |
# Replace '/' characters in REPO with '_' | |
FILENAME=${REPO//\//_}__${TAG}__${ID}.tar | |
IMAGE=${REPO}:${TAG} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
save some images