If you are using a VPN, its "Killswitch" feature might be preventing Docker's requests from being routed correctly. Try disabling it temporarily.
Run ping 8.8.8.8 to see if you have raw internet access. curl (6) could not resolve host download.docker.com
Set your proxy environment variables before running the command: If you are using a VPN, its "Killswitch"