After upgrade, docker cannot communicate with the outside world

This issue is not new. It sounds like you solved it with a backup, re-installation, and restore.

For what it’s worth, I worked around the problem as described here: Could not resolve host: github.com for SamSaffron/pups.git