Restore from a server image that contain discourse, but rebuild error

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 ‘https://github.com/discourse/pups.git/’: 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

1 Like

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.

3 Likes

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.

1 Like

I don’t know which one to configure