brikis98 / docker-osx-dev

A productive development environment with Docker on OS X
http://www.ybrikman.com/writing/2015/05/19/docker-osx-dev/
MIT License
1.43k stars 106 forks source link

Constant "Password:" prompts #194

Open arkwright opened 8 years ago

arkwright commented 8 years ago

Unfortunately I can't reproduce this problem, but docker-osx-dev appears to be prompting for a sudo password continuously under some circumstances. We believe this to be the case because there are no other sudo requirements in the affected script.

Password:
Password:
Password:
Password:

No matter how many times the password is entered, the prompts continue.

Cancelling the prompt and re-saving the (unmodified) affected script triggers the prompts again.

The problem has since resolved itself. Sorry I can't be more specific. 😞

dmitrif commented 8 years ago

I imagine this has something to do with fsutils. But that's just a hunch.

brikis98 commented 8 years ago

docker-osx-dev uses docker-machine ssh or boot2docker ssh to connect to your VM. To authenticate, it uses an SSH key. You can find the logic for docker-machine here and the logic for boot2docker here.

Perhaps your SSH key is configured differently or got deleted? Or has a password on it? That might explain the password prompt.