Skip to content

Instantly share code, notes, and snippets.

@blackandred
Created April 17, 2018 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blackandred/a3ebe8be840f1cb1d26a376996f0275c to your computer and use it in GitHub Desktop.
Save blackandred/a3ebe8be840f1cb1d26a376996f0275c to your computer and use it in GitHub Desktop.
#!/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