How to fix this lasting error?
How to fix:
"failed to solve: python:3.11-slim: failed to resolve source metadata for docker.io/library/python:3.11-slim: failed to authorize: failed to fetch oauth token: Post "https://auth.docker.io/token": dial tcp **.***.****:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."
when run docker compose up -d ? Thanks.
How to fix:
"failed to solve: python:3.11-slim: failed to resolve source metadata for docker.io/library/python:3.11-slim: failed to authorize: failed to fetch oauth token: Post "https://auth.docker.io/token": dial tcp **.***.****:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond."when run docker compose up -d ? Thanks.
docker login first, and maybe a proxy error?
It works on my machine:
pull python:3.11-slim-bullseye in advance, and change your first line of Dockerfile to python:3.11-slim-bullseye