Hey folks, I've tried to follow several Traefik tutorials and like Traefik's documentation say, I decided to just keep it really simple for now.
I am following this tutorial to see if I can get Traefik running on a VM. This VM has external internet access as I can ping external domains from it.
If follow the tutorial above and run it with docker compose (without the -d so I can see the logs) I get an error saying:
traefik | time="2022-07-13T15:17:02Z" level=error msg="Unable to obtain ACME certificate for domains \"traefik.redacted.com\": cannot get ACME client get directory at 'https://acme-v02.api.letsencrypt.org/directory': Get \"https://acme-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-v02.api.letsencrypt.org on 127.0.0.11:53: read udp 127.0.0.1:48907->127.0.0.11:53: i/o timeout" ACME CA="https://acme-v02.api.letsencrypt.org/directory" routerName=traefik-secure@docker rule="Host(`traefik.redacted.com`)" providerName=http.acme
I've redacted my domain above.
I have created the network as suggested, but whenever I get into that container, I can see that it doesn't have external access, so that is probably causing my issue. This only seems to happen with Traefik, as I can ping external domains from other containers in this VM.
What am I missing here?
Thanks in advance