I had the exact problem with my Hassio installation on Ubuntu. I had installed Hassio on docker.io instead of docker ce. After using docker ce everything worked fine.
The problem was that the network settings were wrong in docker so I couldn’t even ping google.com or 8.8.8.8.
# INFO: Using main config file /data/workdir/config
ERROR: Problem connecting to server (get for https://acme-v02.api.letsencrypt.org/directory; curl returned with 6)
I am using Hass.io 0.75.3 with HassOS.
I can ping google.com and 8.8.8.8 no problem.
This issue was discussed in several forums … and I found the below steps which work for several people in meanwhile. It is a clean fresh install and usually works… the port management is essential here.
Step 1. Uninstall DuckDNS and lets encrypt from HassIO.
Step 2. Goto your routers port forwarding settings. Forward port 80 external to 80 internal at your pi's IP. Do the same with 443 external to 443 internal at your pi's IP.
Step 3. Re-Install DuckDNS with your key, accept terms and domain and start the add-on. Keep refreshing the logs down the page to ensure that DuckDNS has created the certs. This may take 10-15 mins it did for me.
Step 4. Once DuckDNS has created the certificates add these lines to your configuration.yaml
http: base_url: https://my-domain.duckdns.org ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem api_password: Secure password
Save.
Step 5. Go into your routers port forwarding settings delete the port forward 80 external to 80 internal and change 443 external to 8123 internal at your pi's IP.
Step 6. Restart Home Assistant and navigate to https://my-domain.duckdns.org or whatever your domain is. Enter your password set in api_password: and log into Home Assistant.
This video is also a good guide- https://youtu.be/BIvQ8x_iTNE