Docker toomanyrequests error

This might be a common scenario for medium/large organizations (e.g. education, health…).

If NS8 shares its public IP with other systems it might hit the Docker Hub rate limit¹ for image pulls.

To avoid hitting the limit, it is possible to set up Docker Hub credentials. At a root shell prompt type this command²:

runagent podman login docker.io

The command asks for Docker Hub credentials. It could be a good idea to generate and use a read-only access token³ for the NS8 system only – refer to Docker Hub documentation about how to do it.

The access token returned by docker.io is saved in /etc/nethserver/registry.json. Ensure the file is still world-readable because every Unix user of the system (NS8 modules) needs to read it.

chmod -c a+r /etc/nethserver/registry.json

Repeat the procedure for every node of the cluster.

Further references:

  1. Download rate limit | Docker Documentation
  2. podman-login — Podman documentation
  3. Create and manage access tokens | Docker Documentation
2 Likes