-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The section on Docker on MacOS is inaccurate #15647
Comments
The minikube registry addon relies on Therefore it also shows you, how you can set up a tunnel for that address. The docker published port will be random.
Here: When using a driver with a real VM network, such as HyperKit, you can use the IP address of the VM and NodePort 5000. But in that case, you will need to configure your local client to use HTTP to talk to it (add it as an insecure registry) https://minikube.sigs.k8s.io/docs/handbook/registry/#enabling-insecure-registries https://docs.docker.com/registry/deploying/ https://docs.docker.com/engine/reference/commandline/dockerd/#insecure-registries The registry addon was abandoned 5 years ago, and is looking for someone to take over and document it better... Minikube doesn't use a registry by default, and if it did - it would make more sense to run the registry on the host. |
Thanks for the explanation. I think it makes a little sense now. But honestly anyone who stumbles upon that documentation and find it not working will scratch their head. |
It is supposed to be straightforward, from within the cluster (
So it is supposed to tell you the random port, like that
For the other drivers you can use
https://docs.docker.com/registry/insecure/#deploy-a-plain-http-registry $ docker inspect --format='{{(index (index .NetworkSettings.Ports "5000/tcp") 0).HostPort}}' minikube
49155
$ docker tag busybox localhost:49155/myimage
$ docker push localhost:49155/myimage
Using default tag: latest
The push refers to repository [localhost:49155/myimage]
b64792c17e4a: Pushed
latest: digest: sha256:907ca53d7e2947e849b839b1cd258c98fd3916c60f2e6e70c30edbf741ab6754 size: 528 $ minikube ip
192.168.58.2
$ docker tag busybox 192.168.58.2:5000/myimage
$ docker push 192.168.58.2:5000/myimage
Using default tag: latest
The push refers to repository [192.168.58.2:5000/myimage]
Get "https://192.168.58.2:5000/v2/": http: server gave HTTP response to HTTPS client |
It seems like the documentation is somewhat outdated. At least with regards to the minikube "registry" addon: https://minikube.sigs.k8s.io/docs/handbook/registry/ The registry runs on 80/443, the proxy runs on 5000.
$
In the cluster, the cluster IP range is added to the "insecure registries" by default:
So in there it is possible to use |
alionell do you linking to the exact page ? if you are refering to https://minikube.sigs.k8s.io/docs/handbook/pushing/#4-pushing-to-an-in-cluster-using-registry-addon |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/remove-lifecycle rotten |
@afbjorklund could you explain that a bit more? I have a knative service, how would I refer to that image? |
It is confusing. There is a registry running in the cluster, but in order to not have to deploy a certificate for running it with https or setup the local "insecure registries" settings there is a proxy deployed on localhost:5000 to use HTTP instead... The original documentation (which since has been deprecated and removed) explains it a little bit better: https://github.com/kubernetes/kubernetes/blob/6f48d86f0fde19ac71c234fcbb4917b6a1318014/cluster/addons/registry/README.md |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What Happened?
The section on Docker on MacOS is inaccurate with regards to the port number being used by the registry, which is apparently not 5000. It is apparently 32773, which I've not been able to test out yet. But following the instructions given under that section only results in an address in use error and does not perform as said.
Attach the log file
log.txt
Operating System
macOS (Default)
Driver
HyperKit
The text was updated successfully, but these errors were encountered: