-
Notifications
You must be signed in to change notification settings - Fork 277
(feature): update kind-registry port forwarding #4554
(feature): update kind-registry port forwarding #4554
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a reasonable change, but I'm running Docker desktop 4.5.0 and not seeing this issue, so let's not conclude that's the issue just yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The idea to try this came from kind's script that this is based on where this same change was recently made to prevent the registry from being accessible outside localhost: https://kind.sigs.k8s.io/docs/user/local-registry/
This also fixes an issue I had on my Mac where I would need to docker network disconnect kind kind-registry
to be able to push to the registry and then docker network connect kind kind-registry
for the cluster to be able to pull from the registry.
I didn't figure out exactly why this fixes the issue, but I noticed prior to this change:
$ docker port kind-registry
5000/tcp -> 0.0.0.0:5000
5000/tcp -> :::5000
and after this change:
$ docker port kind-registry
5000/tcp -> 127.0.0.1:5000
Changing the added 127.0.0.1 to 0.0.0.0 also fixed my particular issue.
I suspect it has something to do with docker push/pull
using ipv6 and that not propagating through to the registry properly since curl
never had a problem accessing it via localhost
.
@schristoff Can you update the title/description to reflect that this doesn't seem like an issue with any particular version or distribution of Docker? At least I don't think we know enough to be able to make that claim just yet.
Looking at it again, I think what's there is good.
274c890
to
ee2631d
Compare
Signed-off-by: Sarah Christoff <[email protected]>
Signed-off-by: Sarah Christoff <[email protected]>
ee2631d
to
b2958de
Compare
Description: In recent versions of Docker for Mac there is a translation issue when talking to the registry at
localhost
- this issue does not appear to occur when using127.0.0.1
- here is a relevant issue on this.Testing done: While running Docker 4.5.0 I was unable to communicate to the registry at localhost, only via 127.0.0.1 - I uninstalled 4.5.0, installed 4.0.0 and no longer had the localhost issue. I added these changes and ran
make kind-demo
successfully.Affected area:
Please answer the following questions with yes/no.
no
no