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
I expected the registry to pull nginx:latest from DockerHub, cache it locally, and return the image back to the client.
Screenshots or terminal output
docker pull registry.docker.localhost:5000/nginx:latest
Error response from daemon: failed to resolve reference "registry.docker.localhost:5000/nginx:latest": registry.docker.localhost:5000/nginx:latest: not found
The created registry works fine as a pass-through proxy. My misunderstanding was that I thought it was a full-fledged docker registry and I should be able to docker pull images out of it... You can't.
It turns out that the registry can only be used indirectly. Meaning, if you add:
"registry-mirrors": [
"http://localhost:5000"
]
to ~/.docker/daemon.json and run docker pull nginx then your local docker engine will request the image from http://localhost:5000. If the local proxy has it, it'll return a copy; otherwise, it'll download a copy from dockerhub first.
So again, you can use the local instance as a proxy but you cannot interact with it directly.
What did you do
How was the cluster created?
k3d registry create registry.docker.localhost --port 5000 --proxy-remote-url https://registry-1.docker.io
What did you do afterwards?
docker pull registry.docker.localhost:5000/nginx:latest
What did you expect to happen
I expected the registry to pull
nginx:latest
from DockerHub, cache it locally, and return the image back to the client.Screenshots or terminal output
Which OS & Architecture
k3d runtime-info
Which version of
k3d
k3d version
Which version of docker
docker version
anddocker info
docker version
returns:docker info
returns:The text was updated successfully, but these errors were encountered: