Created
April 17, 2018 19:02
-
-
Save blackandred/a3ebe8be840f1cb1d26a376996f0275c 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
#!/bin/bash | |
printf " >> Pulling all base images\n" | |
for image_name in $$(cat ./containers/*/Dockerfile | grep -E "FROM (.*)" | sed -e 's/FROM //g'); do \ | |
echo " >> Pulling $$image_name"; \ | |
sudo docker pull "$${image_name}"; \ | |
done | |
printf " >> Pulling images from docker-compose\n" | |
sudo docker-compose pull |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment