Skip to content

Instantly share code, notes, and snippets.

View j0yu's full-sized avatar
👌

Joe Yu j0yu

👌
View GitHub Profile
@j0yu
j0yu / docker_descendants.py
Last active May 7, 2019 15:36 — forked from altaurog/docker_descendants.py
Python 2 version of the Python3 script to find descendants of one or more docker images. Slightly different searching/print algorithm
#!/bin/python2
#
# usage: python2 docker_descendants.py <image_id> ...
import sys
from subprocess import check_output
from collections import defaultdict
def run(cmd):