mongodb-github-action icon indicating copy to clipboard operation
mongodb-github-action copied to clipboard

Action fails due to docker: toomanyrequests

Open emarchak opened this issue 1 year ago • 9 comments

We're using this step in our gh actions and it failed due to the following error.

It looks like we're unauthenticated with docker when pulling the mongodb lib, and I can't see anything in this actions code/readme authenticating against docker. Plus we're only running a few actions a day (small company), so my assumption is that we hit a rate limit with a few other anonymous users.

Any thoughts on how to correct this?

Selecting correct MongoDB client
    - Using MongoDB client: [mongosh --quiet]
  
Starting MongoDB as single-node replica set
    - port [42069]
    - version [5.0]
    - replica set [rs0]
  
  Unable to find image 'mongo:5.0' locally
  5.0: Pulling from library/mongo
  docker: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit.
  See 'docker run --help'.
  Error starting MongoDB Docker container

Our config is the following:

      # Step: Start MongoDB
    - name: Start MongoDB
      uses: supercharge/[email protected]
      with:
        mongodb-version: "5.0"
        mongodb-port: 42069
        mongodb-replica-set: rs0

emarchak avatar Jul 03 '24 15:07 emarchak