Hi guys. Thanks for checking this topic post.
I am facing the error when I tried to build a image on a VMware Virtual Machine (Win10). The VM is on my company’s network and using proxy server to access the Internet. The same code has been tested on my local laptop without any issues. I have looked it up the whole day but no solution for this case. I appreciated any help from you. FYI, the below is the error’s output:
ERROR: failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: failed to resolve source metadata for docker.io/docker/dockerfile:1: failed to authorize: DeadlineExceeded: failed to fetch oauth token: Post “https://auth.docker.io/token”: dial tcp 54.198.86.24:443: i/o timeout
Below is how I ran the command:
(.venv) C:\Users\Project-User\Workspace\docker_test\app>docker build --tag hello-py .
[+] Building 30.8s (3/3) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 471B 0.1s
=> ERROR resolve image config for docker-image://docker.io/docker/dockerfile:1 30.5s
=> [auth] docker/dockerfile:pull token for registry-1.docker.io 0.0s
------
> resolve image config for docker-image://docker.io/docker/dockerfile:1:
------
Dockerfile:1
--------------------
1 | >>> # syntax=docker/dockerfile:1
2 |
3 | # base python image for custom image
--------------------
ERROR: failed to solve: DeadlineExceeded: DeadlineExceeded: DeadlineExceeded: failed to resolve source metadata for docker.io/docker/dockerfile:1: failed to authorize: DeadlineExceeded: failed to fetch oauth token: Post "https://auth.docker.io/token": dial tcp 54.198.86.24:443: i/o timeout
View build details: docker-desktop://dashboard/build/default/default/snpit06zts9xmb5xt8swszxt6