0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

docker環境でgithubへの接続ができなくなった

Posted at

docker環境でgithubへの接続ができなくなった

wsl2 / Ubuntu上のdocker container からgit push しようとすると以下のエラーに遭遇

Could not resolve hostname github.com: Temporary failure in name resolution

github.comの名前解決ができない模様。。。
container内の/etc/resolv.confに以下を追記すると解決。

/etc/resolv.conf
nameserver 8.8.8.8

DNS 8.8.8.8はGoogleが運営するパブリックDNSサービスらしい。
https://www.school.ctc-g.co.jp/sse/columns/ozawa2/ozawa201.html

にしても急にエラーが発生するようになったので根本的な解決ではない可能性あり??
現状container再起動すると追記内容が消えていしまうためlocalからマウントして対応中。
もっとスマートな解決方法があるはず

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?