Skip to content
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

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

Closed
bjethwan opened this issue Jul 7, 2022 · 5 comments
Labels
area/installation Installation and Topology kind/question Further information is requested status/stale

Comments

@bjethwan
Copy link

bjethwan commented Jul 7, 2022

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?

@squakez squakez added kind/question Further information is requested area/installation Installation and Topology labels Jul 13, 2022
@squakez
Copy link
Contributor

squakez commented Jul 13, 2022

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

@claudio4j
Copy link
Contributor

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
Copy link
Contributor

@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.

@squakez
Copy link
Contributor

squakez commented Aug 26, 2022

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

@github-actions
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/installation Installation and Topology kind/question Further information is requested status/stale
Projects
None yet
Development

No branches or pull requests

3 participants