Created
May 29, 2018 13:38
-
-
Save brotich/57a11f4d1d6cf7701235e0f5d26541a0 to your computer and use it in GitHub Desktop.
get docker images children
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
!#/usr/bin/env bash | |
# from https://stackoverflow.com/questions/36584122/docker-how-can-i-get-the-list-of-dependent-child-images | |
for i in $(docker images -q) | |
do | |
docker history $i | grep -q d69bc9d9b016 && echo $i | |
done | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment