Cloudflare tunnel: Unable to establish connection with Cloudflare edge

when I try to launch cloudflared tunnel via docker I get the following error in the logs :

cloudflared  | 2023-04-27T22:26:14Z ERR Unable to establish connection with Cloudflare edge error="DialContext error: dial tcp [2606:4700:a0::7]:7844: connect: cannot assign requested address" connIndex=0 event=0 ip=2606:4700:a0::7
cloudflared  | 2023-04-27T22:26:14Z ERR Serve tunnel error error="DialContext error: dial tcp [2606:4700:a0::7]:7844: connect: cannot assign requested address" connIndex=0 event=0 ip=2606:4700:a0::7
cloudflared  | 2023-04-27T22:26:14Z INF Retrying connection in up to 1m4s connIndex=0 event=0 ip=2606:4700:a0::7
cloudflared  | 2023-04-27T22:26:45Z ERR Unable to establish connection with Cloudflare edge error="DialContext error: dial tcp [2606:4700:a8::8]:7844: connect: cannot assign requested address" connIndex=0 event=0 ip=2606:4700:a8::8
cloudflared  | 2023-04-27T22:26:45Z ERR Serve tunnel error error="DialContext error: dial tcp [2606:4700:a8::8]:7844: connect: cannot assign requested address" connIndex=0 event=0 ip=2606:4700:a8::8
cloudflared  | 2023-04-27T22:26:45Z INF Retrying connection in up to 1m4s connIndex=0 event=0 ip=2606:4700:a8::8

I can ping any of the IPs it is trying to connect to with no issues.

PING 2606:4700:a8::8(2606:4700:a8::8) 56 data bytes
64 bytes from 2606:4700:a8::8: icmp_seq=1 ttl=56 time=13.4 ms

telnet to port 7844 works fine :

telnet region1.v2.argotunnel.com 7844
Trying 2606:4700:a0::6...
Connected to region1.v2.argotunnel.com.

this is an IPv6-only instance out of scaleway. The docker compose file is the same one I’m using on half a dozen places, with the TUNNEL_TOKEN variable set for the local tunnel, and it works in all the other locations (non scaleway locations)

any help would be appreciated. thank you.

Unfortunately I ran into the same problem. Docker container that has only a v6 address. Can’t establish a connection with the same error output.