Reputation: 1635
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?
Upvotes: 1
Views: 410
Reputation: 3220
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.
Upvotes: 2