Created
February 15, 2018 07:33
-
-
Save ouyi/f3d79b9a45a73d2db26d49a48b11a824 to your computer and use it in GitHub Desktop.
Find docker child images
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
image_id="$1" | |
for i in $(docker images -q); do | |
docker history $i | grep -q "$image_id" && echo $i; | |
done | sort -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment