LoginSignup
9
9

More than 5 years have passed since last update.

boot2dockerでパスワードを聞かれないようにする

Last updated at Posted at 2014-10-20

boot2dockerでパスワードを聞かれないようにする

結論: chmod 600 ~/.ssh/id_boot2docker で治る

症状

Docker 1.3 と boot2docker 1.3もきて、fig 1.0 も出ましたね。
Macでboot2docker up/startを実行すると以下のようにパスワードが何回も聞かれることがあるようです。

sh
$ boot2docker up
Waiting for VM and Docker daemon to start...
.docker@localhost's password:
odocker@localhost's password:
docker@localhost's password:

Started.
docker@localhost's password:

boot2dockerのid:passはdocker:tcuserなのですが、普通は聞かれないので治し方。

対処法

  • chmod 600 ~/.ssh/id_boot2docker しましょう

調査方法

  • boot2docker -v up でboot2dockerが裏側で叩いているコマンドが見えます。boot2dockerはすべてのコマンドで-vオプションが使えるので困ったら-vしましょう
9
9
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
9
9