fix(name): preserve localhost registry references by rohan-patnaik · Pull Request #2316 · google/go-containerregistry (original) (raw)

Fixes #2048

Summary

This treats localhost/... as an explicit registry reference when parsing image names.

Why

Podman tags local images as localhost/name:tag. Before this change, localhost/testimage:mytag was parsed as a Docker Hub repository and became index.docker.io/library/testimage:mytag, so daemon lookups failed with “image not known”.

Test plan