I use dockerfile to build image and container. I haven’t changed anything. But from yesterday, I cannot build it. My docker file is
FROM python:3.8-slim-buster
WORKDIR /src
COPY requirements.txt /src
RUN pip install -r requirements.txt
COPY app/ /src/app
ENV PYTHONPATH=/src
EXPOSE 8000
WORKDIR /src/app
I got below error.
ERROR: failed to solve: DeadlineExceeded: DeadlineExceeded: python:3.8-slim-buster: failed to copy: httpReadSeeker: failed open: failed to do request: Get "https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/cf/cf7d11e02afd21125c5378d971bc42cfed2b697d7c116b14eed0baad617839da/data?verify=1687069048-Wqw%2FLtaBudeh5Szh3s0QeRVV6q0%3D": dial tcp 104.18.123.25:443: i/o timeout
I don’t know why this happens and I cannot find anything about this kind of error. Would you help me out here?
Thanks
2
Answers
I found the issue. It is because of the network. I used the mirror to get the python image.
I think you have logged in with another registry. It’s trying to pull image from the registry that you mentioned while logging in.