-
Notifications
You must be signed in to change notification settings - Fork 37
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
Unable to pull image from local registry #1
Comments
With kind I tried to load image into cluster as: However running
My docker registry is running:
NOTE: I started my docker registry as: |
I got it to work on minikube. The issue is with minikube. You need to add flag for '--insecure-registry' when starting the minikube as: NOTE: localhost did not work. You need to specify the ip Similarly you need to add above flag for docker, as mentioned above. More info: https://docs.docker.com/registry/insecure/ |
@arvindkgs how did you specify the insecure flag in the docker registry command? Is it just: docker run -d -p 5000:5000 --restart=always --name registry registry:2? And this insecure registry command must be run after adding the insecure registry to the /etc/docker/daemon.json file? Thanks for the help. |
@js123331 you need to first start minikube, then edit |
I tried the following procedure:
Build Step: eval $(minikube docker-env) && When I look at the statuses of my pods, I get: When I describe that pod, I get: Failed to pull image "localhost:5000/repository:latest": rpc error: code = Unknown desc = Error response from daemon: Get http://localhost:5000/v2/: dial tcp 127.0.0.1:5000: connect: connection refused. Same error message as before. Is there anything else I can change? Do I need to replace localhost/127.0.0.1 in the build step to ip_addr_of_my_machine. thanks for the help! |
Hi, Did you solve it? I have the same problem, I'm running a minikube with the latest docker desktop for mac, and having a docker registry 2 on the same docker daemon. I could push or pull images to this private registry, but failed to pull image from pod, got the same error info: Failed to pull image "xxx:5000/repository:latest": rpc error: code = Unknown desc = Error response from daemon: Get http://xxx:5000/v2/: dial tcp 127.0.0.1:5000: connect: connection refused. |
The 'demo' application fails to deploy on the kubernetes cluster when I run the command:
kubectl apply -f deployment.yml
Google gives a possible fix
Can you please tell me how to fix this?
Note: I am running on minikube on ArchLinux. I tried to run on kind, I don't get any error, but following command
curl localhost:8080
How do I check logs for kind?
The text was updated successfully, but these errors were encountered: