在 GCP VM 实例中构建和 运行 docker 容器的问题

Issues with building and running docker containers in GCP VM Instance

我正在尝试从 GCP VM 实例中的 docker 文件构建 docker 图像。 当我 运行 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

我的docker文件如下:

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"]

此错误的可能原因是什么?

看来问题出在为它拉 docker 图像。

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.

要克服 docker 集线器拉取率限制,请参阅 link

同样按照@DazWilkin 的建议,尝试从 Google's mirror 拉取 Python 图像。

有关其他信息,请参阅