I had this issue when I set up my first server and, irritatingly, the issue resolved itself after a few hours. That sort of issue often hints at a DNS replication issue, but I am using CloudFlare DNS (low TTL) and I can ping, through the host name, just fine.
The docker installation completed OK and nc is available.
docker ps suggests that both ports 80 and 443 are directed to the container.
sof -i -P -n reports that docker-pr is listening to both ports too.
I never figured out why this problem occurred with the first installation, but now it’s happened again I will drill down and troubleshoot. Haven’t figured it out yet but suspect it’s some basic plumbing.
Thanks again.