Restaurer à partir d'une image de serveur contenant Discourse, mais erreur de reconstruction

I backup a server image which discourse runs smoothly, and then restore on a new server with the backup, but when I rebuild app from discourse directory, it always gets a error to access git, the message is:

"cd /pups && git pull && /pups/bin/pups --stdin

fatal: unable to access ‘GitHub - discourse/pups: Simple yaml based bootstrapper for Linux machines’: Could not resolve host: github.com"

By the way, the network has no problem that I can access github, I wonder there’s a configuration contains the old server’s ip address in discourse, but I can’t find it

The host network has no problem, but the Docker one is busted.

Last week someone complained with a similar bug and the docker network wasn’t able to connect to the DHCP provided DNS, and setting it to a public DNS (like 8.8.8.8) solved it.

I have change the nameserver in resolv.conf and hosts, but it doesn’t work

Which resolve.conf? The docker container or the host?

Can the docker container ping that IP? If ICMP doesn’t reach it then UDP won’t.

I don’t know which one to configure

Désolé de raviver un vieux fil. J’ai le même problème :

fatal: unable to access ‘GitHub - discourse/pups: Simple yaml based bootstrapper for Linux machines · GitHub’: Could not resolve host: github.com
ed49e7f0cd62b126dbf62361bde91094df50435ead3813455b1a9bf2305a2604
** ÉCHEC DU BOOTSTRAP ** veuillez faire défiler vers le haut et rechercher les messages d’erreur précédents, il peut y en avoir plus d’un.

Comme je ne suis pas développeur/coder, je ne possède que des connaissances limitées en FTP, SSH et commandes Linux. J’ai surtout configuré le forum moi-même en apprenant au fur et à mesure.

Cependant, aujourd’hui, j’ai modifié certaines informations SMTP dans app.yml, puis j’ai reconstruit et obtenu ce problème.
Quelqu’un peut-il m’orienter vers un guide complet pour résoudre ce problème avec Docker ?

Si votre serveur ne parvient pas à résoudre GitHub, c’est probablement qu’il y a un problème de DNS.