Ejemplo n.º 1
0
def img_exists(name):
    return name in [ctn['RepoTags'][0].split(':')[0] for ctn in dckr.images()]
Ejemplo n.º 2
0
def get_img_names():
    names = list(flatten(n['Names'] for n in dckr.images(all=True)))
    return [n[1:] if n[0] == '/' else n for n in names]