Error response from daemon: ....dial tcp connect: network is unreachable

Authenticating with existing credentials…
Login did not succeed, error: Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp 34.228.211.243:443: connect: network is unreachable

I keep receiving this error when trying to login to Docker via my VM Ubuntu 20.04. I receive similar network connection errors when trying to update as well.