Docker rate limiting
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.
Docker's information on rate limiting can be found here:
Check for rate limiting
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 CLI
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
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.
Please log in or register to submit a comment.