tried that too. Doesnt work. I do not understand what is the problem here. 

On Thursday, January 22, 2015 at 12:33:51 AM UTC+5:30, Alvaro Miranda 
Aguilera wrote:
>
> seems ssh is disabled so you need to enable it.
>
> RUN rm -f /etc/service/sshd/down
>
> # Regenerate SSH host keys. baseimage-docker does not contain any, so you
> # have to do that yourself. You may also comment out this instruction; the
> # init system will auto-generate one during boot.
> RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
>
> https://github.com/phusion/baseimage-docker#login_ssh
>
> so you can test
>
>
>
>
> On Thu, Jan 22, 2015 at 4:38 AM, <[email protected] <javascript:>> 
> wrote:
>
>> I am fairly new to Vagrant and Docker both. What I am trying to do here 
>> is to get a container provided via docker in Vagrant and install a small 
>> webapp using the shell provisioner. 
>>
>> Here is my Vagrantfile 
>>
>> Vagrant.configure(2) do |config|
>>
>> # config.vm.provision :shell, path: "bootstrap.sh"
>> config.vm.provision :shell, inline: 'echo Hi there !!!'
>>
>>    config.vm.provider :docker do |d|
>>      d.name="appEnvironment"
>>      d.image = "phusion/baseimage"
>>      d.remains_running = true
>>      d.has_ssh = true
>>      d.cmd = ["/sbin/my_init","--enable-insecure-key"]
>>    end
>> end
>>
>> The problem that i am facing here is that after the container is created 
>> it keeps running the following and eventually just stops. I can see a 
>> running docker container when i type in docker ps but it hasnt run the 
>> provisioning part. I am assuming it is because the ssh wasnt successful
>>
>> ==> default: Creating the container...
>>     default:   Name: appEnvironment
>>     default:  Image: phusion/baseimage
>>     default:    Cmd: /sbin/my_init --enable-insecure-key
>>     default: Volume: /home/devops/vagrantBoxForDemo:/vagrant
>>     default:   Port: 127.0.0.1:2222:22
>>     default:  
>>     default: Container created: 56a87b7cd10c22fe
>> ==> default: Starting container...
>> ==> default: Waiting for machine to boot. This may take a few minutes...
>>     default: SSH address: 172.17.0.50:22
>>     default: SSH username: vagrant
>>     default: SSH auth method: private key
>>     default: Warning: Connection refused. Retrying...
>>     default: Warning: Connection refused. Retrying...
>>     default: Warning: Connection refused. Retrying...
>>
>> Can someone let me know where i might be wrong? I tried changing the 
>> image as well but without success.
>>  
>> -- 
>> 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.

Reply via email to