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

「いいね!」 1

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.

「いいね!」 4

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

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
** FAILED TO BOOTSTRAP ** 上記をスクロールして、より早いエラーメッセージを確認してください。複数のエラーが含まれている可能性があります。

私は開発者やプログラマーではなく、FTP、SSH、Linux コマンドに関する知識は限られています。主に自分でフォーラムをセットアップし、その過程で学んでいます。

しかし、今日 app.yml で SMTP 情報をいくつか変更して再構築したところ、この問題が発生しました。
Docker のこの問題を解決するための包括的なガイドを教えてください。

サーバーで GitHub の解決ができない場合、DNS に何らかの問題が発生している可能性があります。