new utility

This commit is contained in:
Steve Waterworth
2020-04-30 12:29:15 +01:00
parent 51f5ea6ecf
commit 9ecba3f164

11
pullbaseimages.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
for DFILE in $(find . -name Dockerfile -print)
do
# multiple images
for IMAGE in $(awk '/^FROM/ { print $2 }' $DFILE)
do
echo "Pulling $IMAGE"
docker pull $IMAGE
done
done