I had the same issue, with an IPv6 address in the error message being a red herring. In my case, my wifi router was providing a secondary DNS address of 0.0.0.0 via DHCP. Note the primary DNS address was valid and thus ping curl to the docker repository were working fine. Correcting the router's DHCP configuration to provide the secondary DNS 8.8.8.8 resolved the issue.