vagrant-docker-lamp icon indicating copy to clipboard operation
vagrant-docker-lamp copied to clipboard

Getting prompted for Docker's password on vagrant up

Open KorvinSzanto opened this issue 9 years ago • 12 comments

On vagrant up, I'm seeing this:

    default: The machine you're rsyncing folders to is configured to use
    default: password-based authentication. Vagrant can't script rsync to automatically
    default: enter this password, so you'll likely be prompted for a password
    default: shortly.
    default:
    default: If you don't want to have to do this, please enable automatic
    default: key insertion using `config.ssh.insert_key`.
    default: Rsyncing folder: /git/fieldblogger_web/ => /var/lib/docker/docker_1443720491_99939
[email protected]'s password:

I enabled key insertion in my VagrantFile, but it didn't seem to do the trick. Any ideas?

KorvinSzanto avatar Oct 01 '15 17:10 KorvinSzanto

The username is not docker, but root, so not sure why it's asking for that password. Did you modify the Vagrantfile? It's not even using rsync.

czettnersandor avatar Oct 01 '15 21:10 czettnersandor

Weird, didn't modify anything. All I did wa include the vagrant file and dev directory and run vagrant up. Maybe there was some kind of collision, I'll do some digging and post back. On Thu, Oct 1, 2015 at 2:38 PM Sándor Czettner [email protected] wrote:

The username is not docker, but root, so not sure why it's asking for that password. Did you modify the Vagrantfile? It's not even using rsync.

— Reply to this email directly or view it on GitHub https://github.com/czettnersandor/vagrant-docker-lamp/issues/1#issuecomment-144857331 .

KorvinSzanto avatar Oct 01 '15 22:10 KorvinSzanto

What is your version of Vagrant and Docker?

~ $ vagrant -v Vagrant 1.7.4 ~ $ docker -v Docker version 1.8.2, build 0a8c2e3-dirty

czettnersandor avatar Oct 02 '15 11:10 czettnersandor

I'm seeing exactly the same console output and request for password, using the same versions of Vagrant and Docker listed above (1.7.4 and 1.8.2)

bradcerasani avatar Oct 09 '15 16:10 bradcerasani

The password it's looking for is tcuser, FWIW. Perhaps this is related to boot2docker?

bradcerasani avatar Oct 09 '15 16:10 bradcerasani

Any idea why would that be? It's not happening here. We are using it on at least 5+ machines, Ubuntu, Fedora and Arch linux. Can I have more details? What operating system is it?

czettnersandor avatar Oct 09 '15 16:10 czettnersandor

I'm using OSX 10.11.1. Not sure what's up, but entering that password allowed vagrant up to continue... though it currently seems to be stalled at default: => Waiting for confirmation of MySQL service startup

bradcerasani avatar Oct 09 '15 16:10 bradcerasani

I'm attempting to run on OSX

On Fri, Oct 9, 2015 at 9:25 AM Sándor Czettner [email protected] wrote:

Any idea why would that be? It's not happening here. We are using it on at least 5+ machines, Ubuntu, Fedora and Arch linux. Can I have more details? What operating system is it?

— Reply to this email directly or view it on GitHub https://github.com/czettnersandor/vagrant-docker-lamp/issues/1#issuecomment-146919511 .

KorvinSzanto avatar Oct 09 '15 16:10 KorvinSzanto

Unfortunately I don't have a Mac to test with. If you find a solution for the problem, let me know or create a pull request, it will be more than welcomed.

czettnersandor avatar Oct 13 '15 14:10 czettnersandor

for some inexplicable reason, "tcuser" is the valid password (just type that in at the docker password prompt and it suddenly worked for me).

I found http://stackoverflow.com/questions/31613483/vagrant-with-docker-provider-requires-rsync-password after much googling and gnashing of teeth.

dellintosh avatar Feb 01 '16 22:02 dellintosh

Thank you, it's a great discovery. I'm looking into ways to automate this. I also found this issue with boot2docker: https://github.com/mitchellh/boot2docker-vagrant-box/issues/79 However, I'm using the config.ssh.password for something else. I'll post here if I found a solution.

czettnersandor avatar Feb 02 '16 09:02 czettnersandor

+1

vishal1shukla2 avatar May 31 '16 14:05 vishal1shukla2