示例#1
0
def img_exists(name):
    return name in [ctn['RepoTags'][0].split(':')[0] for ctn in dckr.images()]
示例#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]