Created
November 16, 2017 16:34
-
-
Save SehgalDivij/a0011e73b07b9b482a41098e6f24df8d to your computer and use it in GitHub Desktop.
Code to find dependants of a docker image(replace 8df1da2a0a84 with relevant image id)
This file contains hidden or 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
for i in $(docker images -q) | |
do | |
docker history $i | grep -q f50f9524513f && echo $i | |
done | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment