从包含 Discourse 的服务器镜像恢复,但重建报错

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

抱歉打扰了旧帖。我遇到了同样的问题:

fatal: unable to access ‘GitHub - discourse/pups: Simple yaml based bootstrapper for Linux machines · GitHub’: Could not resolve host: github.com
ed49e7f0cd62b126dbf62361bde91094df50435ead3813455b1a9bf2305a2604
** 引导失败 ** 请向上滚动查看更早的错误信息,可能不止一条。

由于我不是开发者/程序员,仅对 FTP、SSH 和 Linux 命令有有限的了解。我主要是自己搭建论坛,并在过程中学习。

不过,今天我修改了 app.yml 中的 SMTP 信息,然后重新构建时遇到了这个问题。
能否有人指给我一份全面的指南,以解决 Docker 相关的问题?

如果您的服务器无法解析 GitHub,那么您可能遇到了某种 DNS 问题。