This may be related to Remote builder connection timeout but creating a new thread as I can connect to the remote builder but it’s timing out connecting to the Docker Registry
[nix-shell:~/projects/bb/dispatch](rider_show_link)$ flyctl deploy -c fly.staging.toml --remote-only
Deploying bike-brigade-staging
==> Validating app configuration
--> Validating app configuration done
Services
TCP 80/443 ⇢ 4000
Remote builder fly-builder-wispy-violet-2739 ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 4.4s (0/1)
[+] Building 30.9s (4/4) FINISHED
=> [internal] load remote build context 0.0s
=> copy /context / 0.7s
=> ERROR [internal] load metadata for docker.io/hexpm/elixir:1.13.0-erlang-24.1-alpine-3.14.0 30.0s
=> ERROR [internal] load metadata for docker.io/library/alpine:3.14 30.0s
------
> [internal] load metadata for docker.io/hexpm/elixir:1.13.0-erlang-24.1-alpine-3.14.0:
------
------
> [internal] load metadata for docker.io/library/alpine:3.14:
------
Error error building: failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to do request: Head "https://registry-1.docker.io/v2/hexpm/elixir/manifests/1.13.0-erlang-24.1-alpine-3.14.0": dial tcp 34.237.244.67:443: i/o timeout
I believe this is an issue with fly and not the docker registry because docker pull hexpm/elixir:1.13.0-erlang-24.1-alpine-3.14.0
works correctly for me.