camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

failed: could not pull base image image adoptopenjdk/openjdk11:slim: https://auth.docker.io/token dial tcp: i/o timeout

Open bjethwan opened this issue 3 years ago • 4 comments

How to get rid of this issue while working with Camel k in KIND cluster?

failed: could not pull base image image adoptopenjdk/openjdk11:slim: Get \"https://auth.docker.io/token?scope=repository%3Aadoptopenjdk%2Fopenjdk11%3Apull&service=registry.docker.io\": dial tcp: i/o timeout

I upgraded docker desktop on my MacBook and restarted multiple times. I have no proxy setting. This is my home wifi and that GET endpoint works fine in my browser in base machine.

Is there some work around. How can I make the IntegrationKit use my localhost docker registry to pull that base image?

bjethwan avatar Jul 07 '22 18:07 bjethwan

It seems the registry points to docker.io . In order to change that, you can edit the IntegrationPlatform or install it from scratch to point to your local registry. The operation is described in https://camel.apache.org/camel-k/1.9.x/contributing/local-development.html#local-minikube

squakez avatar Jul 13 '22 07:07 squakez

You can cache the openjdk11 image in podman and push it to your registry

podman tag adoptopenjdk/openjdk11:slim $REGISTRY/<namespace>/openjdk11:slim
podman push $REGISTRY/<namespace>/openjdk11:slim --tls-verify=false

Then you can install camel-k and set the base-image

kamel install --base-image=<internal registry address:port>/<namespace>/openjdk11:slim

claudio4j avatar Aug 26 '22 14:08 claudio4j

@squakez can this be closed, since it's not an issue in the code ? @bjethwan there is a camel-k zulip chat if you would like a more interactive way to ask questions.

claudio4j avatar Aug 26 '22 14:08 claudio4j

I'll let @bjethwan close if he's happy with the resolution.

squakez avatar Aug 26 '22 14:08 squakez

This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!

github-actions[bot] avatar Nov 25 '22 00:11 github-actions[bot]