Skip to main content

Docker rate limiting

in General Issues
Authors list
Zverejnené: 8. 3. 2024|Posledná Aktualizácia: 8. 3. 2024

Docker rate limiting Copy link to Docker rate limiting to clipboard

Docker has a set a rate limit of Anonymous and Free Docker Hub users to 100 and 200 container image pull requests per six hours. For customers that use shared networks/IP addresses, this can lead to the OPC not being able to download the required docker containers for installations or updates.

Note

Docker's information on rate limiting can be found here:

https://www.docker.com/increase-rate-limits/

Check for rate limitingCopy link to Check for rate limiting to clipboard

To check if your OPC has been affected by rate limiting from Docker you can run the following:

TOKEN=$(curl "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)
copy

This first command will generate a token for Docker based on the IP address of the server

curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest
copy

This second command will query Docker and request the current download count for the IP address associated with the server.

ratelimit-limit: 100;w=21600 ratelimit-remaining: 98;w=21600`
copy

In this example, my limit is 100, and I have made 2 pull requests, so I have 98 remaining for the time period.

Create docker account/Login via the CLICopy link to Create docker account/Login via the CLI to clipboard

You can either create a free docker account (here) or login with an existing one as long as it has not hit the rate limit. Once you have the account credentials you can login to the Docker account on the command line.

docker login
copy

image.png

This will then increase the number of allowed pull requests and will separate the docker pull requests from any other request from the same IP address.

PomocnéNeužitočná
next pageGathering Telemetry Traces
previous pageAccessing service information pages

Please log in or register to submit a comment.