Created
February 26, 2019 06:14
-
-
Save markhuyong/b2997a195c6e9f039bcc2432832949ca to your computer and use it in GitHub Desktop.
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
| image=$1 | |
| echo $1 | |
| img=`echo $image | sed 's/k8s\.gcr\.io/anjia0532\/google-containers/g;s/gcr\.io/anjia0532/g;s/\//\./g;s/ /\n/g;s/_/-/g;s/anjia0532\./anjia0532\//g' | uniq | awk '{print ""$1""}'` | |
| echo "docker pull $img" | |
| docker pull $img | |
| echo "docker tag $img $image" | |
| docker tag $img $image |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment