Issues with building and running docker containers in GCP VM Instance

I am trying to build a docker image from a docker file in GCP VM instance. When I am running the docker build command I am receiving the following error

toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

My docker file is as follows :

FROM python:3.7-slim

ENV APP_HOME app
WORKDIR $APP_HOME
COPY . .
RUN pip install Flask google-auth google-cloud-storage numpy datetime pandas sklearn

ENV PORT 8080
CMD ["python", "app_hello.py"]

What could be the reason for this error?

1 answer

  • answered 2021-07-27 11:30 Fariya Rahmat

    It appeared the issue is with pulling the docker image for it.

    As stated in the link :

    The rate limits of 100 container image requests per six hours for anonymous usage, and 200 container image requests per six hours for free Docker accounts are now in effect. Image requests exceeding these limits will be denied until the six hour window elapses.

    To overcome docker hub pull rate limit refer to link.

    Also as suggested by @DazWilkin try to pull the Python image from Google's mirror.

    For additional information refer here.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum