Inconsistent behaviour of docker pull rate limit #46092
Labels
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
status/0-triage
Description
As i understand it, the rate limit on anonymous pulls does not apply to open source project images.
I have verified this using the docker hub api and querying rate limit before and after pulling an alpine linux image, i.e. no change.
However when I conduct the same experiment from within a container, running on the same host and ‘billing’ to the same IP, the rate limit is decremented. If I continue to pull more OS images, I can drive the limit to zero and I get “toomanyrequests: You have reached your pull rate limit…”
Returning to the host, the rate limit also shows as zero, but I can pull the same open source image successfully as expected.
Why does the ‘Open Source’ nature of the pulled image not recognized from within the container?
Docker version 23.0.5, build bc4487a on both host and within container
OS: Debian bullseye
The container is using the docker socket from the host.
Reproduce
Do not login, use anonymous pulls ...
limit
docker pull alpine
limit
IF run under debian bullseye on host, limit does not decrement.
If run under debian bullseye docker container limit does decrement.
Both are billed to the same ip address.
If a large enough number of images from within the container the limit drops to zero.
The next pull of an opensource qualified image will succeed from host, but fail from container.
Expected behavior
the docker pull limit does not decrement when run on a qualified open source image, not matter if the command is run inside of a container or not.
docker version
Client: Docker Engine - Community Version: 23.0.5 API version: 1.42 Go version: go1.19.8 Git commit: bc4487a Built: Wed Apr 26 16:17:45 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 23.0.5 API version: 1.42 (minimum version 1.12) Go version: go1.19.8 Git commit: 94d3ad6 Built: Wed Apr 26 16:17:45 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.20 GitCommit: 2806fc1057397dbaeefbea0e4e17bddfbd388f38 runc: Version: 1.1.5 GitCommit: v1.1.5-0-gf19387a docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: