in pkg/docker.go [77:92]
func repoTagExists(dcli *client.Client, needle string) bool {
images, err := dcli.ImageList(context.Background(), types.ImageListOptions{All: true})
if err != nil {
return false
}
for _, image := range images {
for _, repoTag := range image.RepoTags {
if repoTag == needle {
return true
}
}
}
return false
}