Created
July 5, 2019 07:50
-
-
Save ohsawa0515/038a68277b2d24d663af9380ae8e344d to your computer and use it in GitHub Desktop.
List container images that exist on all hosts.
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
#!/bin/bash | |
project=$1 | |
hosts=("gcr.io" "us.gcr.io" "eu.gcr.io" "asia.gcr.io") | |
for host in ${hosts[@]}; do | |
gcloud container images list --repository=$host/$project --format json | jq -r ".[].name" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment