in internal/components/setup/kind.go [81:94]
func listLocalImages(ctx context.Context, cli *docker.Client) (map[string]struct{}, error) {
summary, err := cli.ImageList(ctx, types.ImageListOptions{})
if err != nil {
return nil, err
}
res := make(map[string]struct{}, len(summary))
for i := 0; i < len(summary); i++ {
tags := summary[i].RepoTags
for j := 0; j < len(tags); j++ {
res[tags[j]] = struct{}{}
}
}
return res, nil
}