czettnersandor / vagrant-docker-lamp

Vagrant configured with Docker provider to run LAMP environment super fast
MIT License
43 stars 14 forks source link

Getting prompted for Docker's password on vagrant up #1

Open KorvinSzanto opened 8 years ago

KorvinSzanto commented 8 years ago

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
docker@127.0.0.1's password:

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

czettnersandor commented 8 years ago

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.

KorvinSzanto commented 8 years ago

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 notifications@github.com 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 .

czettnersandor commented 8 years ago

What is your version of Vagrant and Docker?

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

bradcerasani commented 8 years ago

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 commented 8 years ago

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

czettnersandor commented 8 years ago

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?

bradcerasani commented 8 years ago

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

KorvinSzanto commented 8 years ago

I'm attempting to run on OSX

On Fri, Oct 9, 2015 at 9:25 AM Sándor Czettner notifications@github.com 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 .

czettnersandor commented 8 years ago

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.

dellintosh commented 8 years ago

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.

czettnersandor commented 8 years ago

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.

vishal1shukla2 commented 8 years ago

+1