24
21

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 5 years have passed since last update.

dockerでsearchまたはpullした時に名前解決が出来ないエラー

Last updated at Posted at 2017-08-09

Windows7 にdocker toolboxをインストールしてdocker search pythonしたらエラーが出た。

$ docker pull python
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on10.0.2.3:53 server misbehaving

名前解決が出来てないのでsshでdocker本体にログインしてDNSサーバーを変える。

$ docker-machine ssh default
#ここでクジラ君が表示される

ログイン出来た後はviなり何なり使って

/etc/resolv.conf
search localdomain
nameserver 10.0.2.3

/etc/resolv.conf
search localdomain
nameserver 8.8.8.8

や他のDNSサーバに変えてやるとsearchやpullが通る。
イマイチググっても解決策が見当たらなかったのでネットワーク環境の問題っぽい。

24
21
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
24
21

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?