Error when trying to set up cloudflare tunnel in docker

Hi,

I’m getting an error when trying to set up the Cloudflare tunnel docker container…

My system: new installation of raspbian + docker

[email protected]_homeserver:/home/pi# docker run cloudflare/cloudflared:latest tunnel --no-autoupdate run --token .......................
Unable to find image 'cloudflare/cloudflared:latest' locally
latest: Pulling from cloudflare/cloudflared
9880fb5de7c7: Pull complete
cf35018713d4: Pull complete
47bd7a01a00c: Pull complete
Digest: .....................
Status: Downloaded newer image for cloudflare/cloudflared:latest
2022-08-28T13:51:50Z INF Starting tunnel tunnelID=.................
2022-08-28T13:51:50Z INF Cannot determine default configuration path. No file [config.yml config.yaml] in [~/.cloudflared ~/.cloudflare-warp ~/cloudflare-warp /etc/cloudflared /usr/local/etc/cloudflared]
2022-08-28T13:51:50Z INF Version 2022.8.2
2022-08-28T13:51:50Z INF GOOS: linux, GOVersion: go1.19, GoArch: arm64
2022-08-28T13:51:50Z INF Settings: map[no-autoupdate:true token:*****]
2022-08-28T13:51:50Z INF Generated Connector ID: .............
2022-08-28T13:51:50Z INF Will be fetching remotely managed configuration from Cloudflare API. Defaulting to protocol: quic
2022-08-28T13:51:50Z INF Initial protocol quic
2022-08-28T13:51:51Z INF Starting metrics server on 127.0.0.1:42939/metrics
2022-08-28T13:51:55Z ERR update check failed error="Get \"https://update.argotunnel.com?arch=arm64&clientVersion=2022.8.2&os=linux\": dial tcp: lookup update.argotunnel.com on 192.168.178.20:53: read udp 172.17.0.2:33927->192.168.178.20:53: read: connection refused"
2022-08-28T13:52:01Z ERR Initiating shutdown error="Couldn't resolve SRV record &{region1.v2.argotunnel.com. 7844 1 1}: lookup region1.v2.argotunnel.com. on 192.168.178.20:53: read udp 172.17.0.2:52968->192.168.178.20:53: i/o timeout"
2022-08-28T13:52:01Z INF Tunnel server stopped
2022-08-28T13:52:01Z INF Metrics server stopped
Couldn't resolve SRV record &{region1.v2.argotunnel.com. 7844 1 1}: lookup region1.v2.argotunnel.com. on 192.168.178.20:53: read udp 172.17.0.2:52968->192.168.178.20:53: i/o timeout

Sorry, can’t seem to edit my post…

Can anybody help with my problem?

The log shows this line

2022-08-28T13:52:01Z ERR Initiating shutdown error="Couldn't resolve SRV record &{region1.v2.argotunnel.com. 7844 1 1}: lookup region1.v2.argotunnel.com. on 192.168.178.20:53: read udp 172.17.0.2:52968->192.168.178.20:53: i/o timeout"

which makes me understand your docker container isn’t being able to resolve hostnames, in other words DNS isn’t working.

1 Like

Ok, thanks, I couldn’t find a solution yet, but it is definitely not Cloudflare tunnel specific…