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

Error pulling images from Docker Hub #37

Closed
blaziq opened this issue Nov 25, 2024 · 3 comments
Closed

Error pulling images from Docker Hub #37

blaziq opened this issue Nov 25, 2024 · 3 comments
Assignees

Comments

@blaziq
Copy link

blaziq commented Nov 25, 2024

It frequently happens during deployment that the limit of pull rate from Docker Hub is exceeded and images fail to download, e.g.:

Warning Failed 17s (x2 over 35s) kubelet Failed to pull image "eoepca/sharinghub:0.3.0": failed to pull and unpack image "docker.io/eoepca/sharinghub:0.3.0": failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/eoepca/sharinghub/manifests/sha256:45bae3b91aa10e31067fee7311f499a44d85c1d6adf5bf99259b2ddcca6c0a0d: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
Eventually, after some time they are pulled and deployed correctly but it creates quite a long delay sometimes.

This can be avoided by authenticating to Docker Hub which will increase the pull limit somewhat. The Deployment Guide should explain how to do it, possibly in the Infrastructure Deployment section. Even then, it is not an ultimate solution and perhaps a private repository should be set up with images necessary to deploy EOEPCA and deployment scripts should be changed accordingly.

@rconway
Copy link
Contributor

rconway commented Nov 26, 2024

In fact this is the approach that we took during the eoepca phase 1, see here - https://github.com/EOEPCA/eoepca/blob/develop/kubernetes/README.md#rke-configuration - although maybe it didn't make its way into the Deployment Guide. We have an eoepca account with dockerhub for this purpose.

That said - it may be difficult to provide general instructions as the setup steps may be a function of the kubernetes distribution in use.

Nevertheless, we will at minimum describe the need to consider this and, if possible, some general instructions.

@spinto
Copy link

spinto commented Nov 27, 2024

I think what we can do is just put into the "pre-requisites" page, in the "recommended" part, a line telling that given the number of containers from dockerhub involved in a release of EOEPCA, to overcome possible image pull limits, it is recommended to setup Dockehub credentials or use a dockerhub proxy registry in the cluster. Just one line, nothing more.

@james-hinton
Copy link
Contributor

This is now highlighted in a Recommended Additional Steps section see c564546

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants