Skip to content

"You have reached your unauthenticated pull rate limit" After login with the action #862

Closed

Description

@royreznik

Contributing guidelines

I've found a bug, and:

  • The documentation does not mention anything about my problem
  • There are no open or closed issues that are related to my problem

Description

So we are using the action as usual, but some time we get an error that related to us not being logged in, although we are,

      - name: Login to DockerHub Container Registry
        uses: docker/login-action@v3
        with:
          username: username
          password: ${{ secrets.SECRET }}

and we get the following result:

Image

And then few second later we get this:

Error response from daemon: toomanyrequests: You have reached your unauthenticated pull rate limit. https://www.docker.com/increase-rate-limit

Expected behaviour

Actual behaviour

Repository URL

No response

Workflow run URL

No response

YAML workflow

- name: Login to DockerHub Container Registry
        uses: docker/login-action@v3
        with:
          username: username
          password: ${{ secrets.SECRET }}
 - name: build
   id: build
   run: >
     docker run linuxkit/binfmt:v1.0.0

This is ofc a psedu, but it it basically the same

Workflow logs

No response

BuildKit logs


Additional info

No response

Activity

  1. 2lu3 commented on May 22, 2025

    @2lu3

    same

  2. tenjaa commented on Jun 20, 2025

    @tenjaa

    I can report the same issue. We are using docker compose via bash:

    ---
    name: test
    on:
      workflow_dispatch:
      pull_request:
        branches: [main]
    
    jobs:
      test-findings:
        runs-on: ubuntu-latest
        steps:
        - uses: actions/checkout@v4
        - uses: docker/login-action@v3
          with:
            username: ${{ secrets.DOCKER_USER }}
            password: ${{ secrets.DOCKER_TOKEN }}
        - uses: jdx/mise-action@v2
        - run: |
            docker compose up -d --quiet-pull
            [...]
    

    Image

  3. crazy-max commented on Jun 20, 2025

    @crazy-max
    Member

    And then few second later we get this:

    I guess you mean this step?:

     - name: build
       id: build
       run: >
         docker run linuxkit/binfmt:v1.0.0

    If that's the case this is not related to the login-action but an issue with your Docker Hub account that is being rate limited. Suggest to open an issue on https://github.com/docker/hub-feedback/.

    Also wanted to note that this docker run command will pull the image using your account for each run of this job. If you're on a GitHub hosted runner, pull from Docker Hub is not rate-limited so I would suggest to remove the login step if you're not pushing anything or pulling from a private repo.

  4. tenjaa commented on Jun 20, 2025

    @tenjaa

    @crazy-max Do you have any link where it states that GitHub hosted runners do NOT have a rate limit applied?
    Looking at the official docs I don't find any notice regarding GitHub at all.
    We observed rate limits before and therefore I just added the login now. And we are using a token of a user with a paid license.

  5. crazy-max commented on Jun 20, 2025

    @crazy-max
    Member

    GitHub hosted runners have docker login credentials set up for pulling without rate-limit. You can check it with:

          -
            name: Docker config
            run: |
              cat ~/.docker/config.json

    Should output smth like:

    {
    	"auths": {
    		"https://index.docker.io/v1/": {
    			"auth": "***"
    		}
    	}
    }
    

    Do you have any link where it states that GitHub hosted runners do NOT have a rate limit applied?

    Not sure if there is docs about it but you can ask on https://github.com/docker/hub-feedback/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions