Hi, thank you for the suggestion. I just did that and I'm getting the same results.
Here are all the files for take 2 Vagrantfile: http://pastie.org/9199129 Dockerfile: http://pastie.org/9199130 docker_ssh.key - private key used for login: http://pastie.org/9199133 Log output where unsuccessful behavior can be seen: http://pastie.org/9199140 I think I'll report this as a bug. On Thursday, May 22, 2014 6:26:35 AM UTC+2, Alvaro Miranda Aguilera wrote: > > try with a different docker image, so you will be closer to where to blame > > :) > > > On Thu, May 22, 2014 at 10:10 AM, Bruno Sutic <[email protected]<javascript:> > > wrote: > >> Thank you for the help Alvaro. Unfortunately that didn't help :( >> I still can't execute ssh command with `vagrant ssh -c "echo 'test'` >> >> Here's the full log: http://pastie.org/9197252 >> Vagrantfile: http://pastie.org/9195825 >> Private key for the box: http://pastie.org/9195841 >> >> >> On Wednesday, May 21, 2014 11:19:47 PM UTC+2, Alvaro Miranda Aguilera >> wrote: >>> >>> not sure if you read some other posts with same issues (or was a bug?) >>> >>> As a workaround >>> >>> Try d.ssh.port=22 >>> >>> or config.ssh.port=22 >>> >>> in your vagrant file. >>> >>> >>> >>> On Thu, May 22, 2014 at 12:27 AM, Bruno Sutic <[email protected]>wrote: >>> >>>> Hi, >>>> here's the vagrantfile I'm using http://pastie.org/9195825 >>>> >>>> And here is the private key referred in the vagrantfile: http://pastie. >>>> org/9195841 >>>> >>>> Steps that work fine: >>>> $ vagrant up --provider=docker >>>> $ vagrant ssh # logs into container, all good at this point >>>> # exit docker container >>>> >>>> Step that does *not* work: >>>> $ vagrant ssh --command "echo 'test'" >>>> # => Bad port '' >>>> >>>> $ vagrant -v >>>> >>>> Vagrant 1.6.2 >>>> `vagrant ssh -c "echo 'test'"` works fine for other vms for me. >>>> Is this a bug? If not, any suggestions how to make it work? Thanks >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Vagrant" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> For more options, visit https://groups.google.com/d/optout. >>>> >>> >>> -- >> You received this message because you are subscribed to the Google Groups >> "Vagrant" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
