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