You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i.e leveraging podman images are tagged with localhost as default registry [1]. Docker used docker.io.
When calculating an images size [2] based on the locally tagged name, resolution will fail[3] because of defaulting back to docker.io. since localhost is not honnored as a relevant registry name.
I barely remember it, but i think containerd is defaulting to localhost as well (?)
=== RUN Test
...test.go:176:
Error Trace: ...test.go:176
Error: Received unexpected error:
Error response from daemon: docker.io/library/testimage:mytag: image not known
Test: Test
--- FAIL: Test (0.01s)
FAIL
The text was updated successfully, but these errors were encountered:
maximilianbraun
changed the title
ggcr: localhost is defaulted to docker.io - image not known when accessing image
ggcr: registry on localhost is defaulted to docker.io - image not known when accessing image
Jan 28, 2025
Hi!
thanks for the great work done here.
Describe the bug
When i.e leveraging podman images are tagged with
localhost
as default registry [1]. Docker used docker.io.When calculating an images size [2] based on the locally tagged name, resolution will fail[3] because of defaulting back to docker.io. since localhost is not honnored as a relevant registry name.
I barely remember it, but i think containerd is defaulting to localhost as well (?)
As far as I can see, https://github.com/google/go-containerregistry/blob/main/pkg/name/repository.go#L81 could be the relevant line of code.
With docker the same behaviour works well, since docker uses internally docker.io as a registry name.
To Reproduce
Expected behavior
I would expect that a valid hostname, like localhost, is accepted as a registry
Additional context
Add any other context about the problem here.
[1]
[2]
[3]
The text was updated successfully, but these errors were encountered: