Skip to content

Instantly share code, notes, and snippets.

View cozek's full-sized avatar
🤕

Kaushik Amar Das cozek

🤕
View GitHub Profile
@cozek
cozek / docker_descendants.py
Created September 29, 2018 09:19 — forked from altaurog/docker_descendants.py
Python3 script to find descendants of one or more docker images
#!/usr/bin/python3
#
# usage: python3 docker_descendants.py <image_id> ...
import sys
from subprocess import check_output
def main(images):
image_ids = set(images)