12
11

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を起動したら、エラーになったときの解決法(Kitematic)

Last updated at Posted at 2015-10-21

現象

Docker ToolBoxのWindows版をインストールして、Kitematicで起動したら、99%で止まって、しばらくしたらエラーが発生。

解決策

hostsファイルに「127.0.0.1 localhost」を追記する。
(Windows7であればC:\WINDOWS\System32\drivers\etc配下にある。他の環境はすみませんが調べてません)

まずはエラー画面を閉じて、コマンドプロンプトを開く。

次に、下記コマンドを実行。

$ docker-machine rm -f default //defaultはbox名

その後に下記コマンドを実行。

$ docker-machine create -d virtualbox default

//実行後
Creating VirtualBox VM...
Creating SSH key...
Starting VirtualBox VM...
Starting VM...
To see how to connect Docker to this machine, run: docker-machine env default

この後、Kitematicを開いたら、「Connect to Docker Hub」という次の画面が表示された。

12
11
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
12
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?