Login Failed. Post https://bitbucket.org/site/oauth2/access_token: dial tcp: lookup bitbucket.org on 8.8.8.8:53: read udp XXX.XX.X.XX:46266->8.8.8.8:53: i/o timeout

How can I resolve this error

Login Failed. Post https://bitbucket.org/site/oauth2/access_token: dial tcp: lookup bitbucket.org on 8.8.8.8:53: read udp 172.17.0.10:33939->8.8.8.8:53: i/o timeout

8.8.8.8 is the default DNS server (run by Google). This error indicates a problem with your host machines network configuration that prevents it from resolving DNS at the default DNS server address, which appears to be timing out. You need to resolve this network / DNS error or you can provide your own DNS server address (see the Docker documentation for instructions).