Skip to content

Instantly share code, notes, and snippets.

@nascimento
Created March 21, 2022 12:34
Show Gist options
  • Save nascimento/a78e5e17e9ce8d8f5c498704c85aa6e2 to your computer and use it in GitHub Desktop.
Save nascimento/a78e5e17e9ce8d8f5c498704c85aa6e2 to your computer and use it in GitHub Desktop.
machines=($(docker-machine ls | sed '1d' | awk '{print $1}'))
for i in "${machines[@]}"
do
:
docker-machine ssh $i sudo docker login -u XXXXXXX -p XXXXXXXXXXXXXXX [REGISTRY];
docker-machine ssh $i sudo docker pull [REGISTRY]/[IMAGE]:latest &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment