find . -name Dockerfile | xargs grep "^FROM docker.io/" | grep -v archlinux | grep -v end-of-life | cut -d ' ' -f2 | sort -u | tac | \
while read from ; do
	shortfrom=$(basename $from)
	echo -n "$shortfrom, "
	(docker pull $from | grep -q "Pull complete") || continue
	printf "\n------------------------------------------------------------------------------\nBuilding %s children:\n" "$shortfrom"
	find . -name Dockerfile | xargs grep -l "^FROM $from" | xargs dirname | \
	while read image ; do
		cd $image
		db
		cd -
	done
done
