Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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しましょう
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away