Hi,
I get the following error when running docker compose up
inside this folder, from this tutorial :
[+] Building 6.3s (3/3) FINISHED docker:default
=> [todo-app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.25kB 0.0s
=> ERROR [todo-app] resolve image config for docker.io/docker/dockerfile:1 6.3s
=> [todo-app auth] docker/dockerfile:pull token for registry-1.docker.io 0.0s
------
> [todo-app] resolve image config for docker.io/docker/dockerfile:1:
------
failed to solve: failed to authorize: failed to fetch oauth token: Post "<https_scheme>auth.docker.io/token": proxyconnect tcp: dial tcp: lookup http on 127.0.0.53:53: server misbehaving
I am running on Ubuntu LTS 22.04.1. and have Docker Desktop installed.
I am behind a http/https proxy server that requires authentication.
All tried docker commands are fully functional in my current configuration, except docker compose up
with buildkit enabled.
After analyzing traffic during the command execution, there seems to be an issue in the proxy configuration that BuildKit uses. My proxy server URL is “<http_scheme>proxy-http.”, but DNS requests query the following domain: “http.”, missing out on the “proxy-” part.
I checked that this was the issue by adding the following line in “/etc/hosts”:
<Proxy_IP> http.
After this modification, docker compose up
, DNS in no longer queried and the command does not throw the usual error, instead timing out after 20s:
[+] Building 20.0s (2/2) FINISHED docker:default
=> [todo-app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 1.25kB 0.0s
=> ERROR [todo-app] resolve image config for docker.io/docker/dockerfile:1 20.0s
------
> [todo-app] resolve image config for docker.io/docker/dockerfile:1:
------
failed to solve: failed to do request: Head "<https_scheme>registry-1.docker.io/v2/docker/dockerfile/manifests/1": proxyconnect tcp: dial tcp: lookup proxy-http.<domain> on 127.0.0.53:53: read udp 127.0.0.1:48598->127.0.0.53:53: i/o timeout
Could anyone who knows what the issue here is, please help ?
PS: Due to link number restrictions, I replaced schemes in URLs.