This is the error which leads to a DNS error in the container.
Do you try to set DNS servers for Docker?
If the answer is yes, and the problem remains, check /etc/hosts to make sure everything is fine there.
If the problem still remains, call your server provider for help. It’s their responsibility for maintaining the network.