LoginSignup
8
8

More than 5 years have passed since last update.

docker pullできずハマる

Posted at

v1.0.0が出たので触ってみたら、いきなりコケて辛い思いをしました。
実行環境は、Mac OS X 10.9.3で、dockerはhomebrew-cask を利用してインストールしています。

Installing Docker on Mac OS X の「Installation」まで終わらせて、

docker pull ubuntu

としてみたところ、次のようなエラーがでて先に進みません。。

Sending build context to Docker daemon 19.97 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu
Pulling repository ubuntu
2014/06/11 12:09:21 Get https://index.docker.io/v1/repositories/ubuntu/images: dial tcp: lookup index.docker.io on 192.168.1.1:53: no answer from server

名前解決ができないのだろと思い、boot2docker-vmのresolve.confを変更してみるが、直らず。

host $ boot2docker ssh
vm $ sudoedit /etc/resole.conf

# nameserver を、8.8.8.8 に変更

解決方法

boot2dockerを再起動したらpullできるようになりました。

boot2docker restart

参考
no answer from server #3603

8
8
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
8
8