Hi Nirmal,

Sshd isn't running on the instances.  See [1] for the rationale.  If you
trying to debug an instance, take a look at nsenter on that page.

Cheers,
Chris

---
[1] http://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/
On 25 Aug 2014 05:01, "Nirmal Fernando" <[email protected]> wrote:

> Hi Chris,
>
> How should one SSH into a stratos docker instance? is the user root?
>
>
> On Sun, Aug 24, 2014 at 9:17 PM, Nirmal Fernando <[email protected]>
> wrote:
>
>> Great.. thanks Chris.
>>
>>
>> On Sun, Aug 24, 2014 at 9:14 PM, chris snow <[email protected]> wrote:
>>
>>>
>>>
>>>
>>> On Sun, Aug 24, 2014 at 4:35 PM, Nirmal Fernando <[email protected]
>>> > wrote:
>>>
>>>>
>>>>
>>>>
>>>> On Sun, Aug 24, 2014 at 8:53 PM, chris snow <[email protected]>
>>>> wrote:
>>>>
>>>>> Sending to the dev list ...
>>>>>
>>>>> On Sun, Aug 24, 2014 at 4:07 PM, chris snow <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Ah yes, my mistake. Thanks Nirmal!
>>>>>>
>>>>>
>>>> No problem Chris! Also, should we ask people to run build-all.sh as
>>>> root user instead of using 'sudo' inside the scripts? I faced few issues
>>>> when running on OS X, hence the question Chris.
>>>>
>>>>
>>>
>>> Makes sense.  Please feel free to make the changes.
>>>
>>>
>>>>  Btw, I'm currently re-reading my old books on bind to figure out the
>>>>>> best approach for a DNS name server image as I think that will make life 
>>>>>> a
>>>>>> lot cleaner than users having to mess around with the docker host 
>>>>>> machine's
>>>>>> /etc/hosts files.
>>>>>>
>>>>>
>>>> Great!
>>>>
>>>>>  When I have the DNS image, I'll pull in the puppetmaster that I have
>>>>>> on GitHub [1]. If you want to pull in the code before then, I think it
>>>>>> should be working IIRC.
>>>>>>
>>>>>
>>>> I already pulled your PM commit in my local repo, will let you know how
>>>> it goes.
>>>>
>>>>>  ---
>>>>>> [1]
>>>>>> https://github.com/snowch/stratos/commit/3528a20c92454331d620ff61fe25cc2bdc618db9
>>>>>>  On 24 Aug 2014 15:46, "Nirmal Fernando" <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hi Chris,
>>>>>>>
>>>>>>> While running build-all.sh script, I hit an error;
>>>>>>>
>>>>>>> Nirmals-MacBook-Pro:stratos-docker-images nirmal$ ./build-all.sh
>>>>>>>
>>>>>>> cp:
>>>>>>> /home/vagrant/stratos-source/tools/stratos-installer/resources/mysql.sql:
>>>>>>> No such file or directory
>>>>>>>
>>>>>>> grep: files/mysql.tmp.0: No such file or directory
>>>>>>>
>>>>>>> sed: 1: "files/mysql.sql": invalid command code f
>>>>>>>
>>>>>>> sed: 1: "files/mysql.sql": invalid command code f
>>>>>>>
>>>>>>> Password:
>>>>>>>
>>>>>>> Seems like 
>>>>>>> /home/vagrant/stratos-source/tools/stratos-installer/resources/mysql.sql
>>>>>>> is hard-coded in mysql docker files. I'll fix them, meanwhile if I am 
>>>>>>> doing
>>>>>>> something wrong, please let me know.
>>>>>>>
>>>>>>>
>>>>>>> On Fri, Aug 8, 2014 at 12:04 PM, Nirmal Fernando <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Fri, Aug 8, 2014 at 11:54 AM, chris snow <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hi Nirmal,  answers inline...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On Fri, Aug 8, 2014 at 5:11 AM, Nirmal Fernando <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>> Also, do you think it's worth to have a puppet master docker
>>>>>>>>>> image too? IMO it'll make this even more easier.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I've started work on this:
>>>>>>>>>
>>>>>>>>> https://issues.apache.org/jira/browse/STRATOS-730
>>>>>>>>>
>>>>>>>>> https://github.com/snowch/stratos/commit/3528a20c92454331d620ff61fe25cc2bdc618db9
>>>>>>>>>
>>>>>>>>
>>>>>>>> Great... appreciate if you could let us know once it is done.
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I'm also wondering whether a dns docker image would be useful too?
>>>>>>>>>
>>>>>>>>> https://issues.apache.org/jira/browse/STRATOS-736
>>>>>>>>>
>>>>>>>>
>>>>>>>>  +1
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, Aug 8, 2014 at 9:37 AM, Nirmal Fernando <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Chris,
>>>>>>>>>>>
>>>>>>>>>>> I'm currently trying the docker images on OS X and it appeared
>>>>>>>>>>> to me that we do not run docker in root mode with OS X docker 
>>>>>>>>>>> installation (
>>>>>>>>>>> https://docs.docker.com/installation/mac/).
>>>>>>>>>>>
>>>>>>>>>>> Should we add a note saying sudo in following command is
>>>>>>>>>>> optional and should use with care?
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>> Please feel free to update the wiki page.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Sure, will add a note.
>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>  MB_ID=$(sudo docker run -p 61616 -d apachestratos/activemq);
>>>>>>>>>>> sleep 2s;
>>>>>>>>>>>  MB_IP_ADDR=$(sudo docker inspect --format '{{
>>>>>>>>>>> .NetworkSettings.Gateway }}' $MB_ID)
>>>>>>>>>>>  MB_PORT=$(sudo docker port $MB_ID 61616 | awk -F':' '{ print
>>>>>>>>>>> $2 }')
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> https://cwiki.apache.org/confluence/display/STRATOS/Running+Stratos+inside+docker
>>>>>>>>>>>
>>>>>>>>>>> Also, Chris, how long should it usually take to pull the 
>>>>>>>>>>> apachestratos/activemq
>>>>>>>>>>> docker repository?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>> Have you managed to download the Stratos image?  The activemq
>>>>>>>>> image is approximately a third of the size of the Stratos image, so 
>>>>>>>>> should
>>>>>>>>> be much quicker to download:
>>>>>>>>>
>>>>>>>>
>>>>>>>> Yes Chris, thanks. It downloaded after awhile.
>>>>>>>>
>>>>>>>>>
>>>>>>>>> vagrant@vagrant:~/stratos-source/tools/stratos-docker-images$
>>>>>>>>> sudo docker images
>>>>>>>>> REPOSITORY               TAG                 IMAGE ID
>>>>>>>>>  CREATED             VIRTUAL SIZE
>>>>>>>>> apachestratos/stratos    latest              0a7d5a6b38f4        9
>>>>>>>>> hours ago         1.312 GB
>>>>>>>>> apachestratos/activemq   latest              deff718a15fa        9
>>>>>>>>> hours ago         485 MB
>>>>>>>>> apachestratos/mysql      latest              c3679856e831        9
>>>>>>>>> hours ago         292.6 MB
>>>>>>>>> ubuntu                   14.04               ba5877dc9bec        2
>>>>>>>>> weeks ago         192.7 MB
>>>>>>>>> stackbrew/ubuntu         12.04               b9e56c8f2cf5        2
>>>>>>>>> weeks ago         103.9 MB
>>>>>>>>>
>>>>>>>>> I've added a JIRA ticket to track this.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>> On Sun, Aug 3, 2014 at 6:59 PM, Imesh Gunaratne <
>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Great stuff!! Thanks Chris!!
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Sat, Aug 2, 2014 at 1:48 AM, Nguyen Anh Tu <[email protected]>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> Perfect! Thanks a lot
>>>>>>>>>>>>>
>>>>>>>>>>>>> --Tuna
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Sat, Aug 2, 2014 at 8:06 AM, Nirmal Fernando <
>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> This is awesome Chris! Thanks a lot.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Fri, Aug 1, 2014 at 1:02 PM, Mariangela Hills <
>>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks, Chris!
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Regards,
>>>>>>>>>>>>>>> Mariangela
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> *--*
>>>>>>>>>>>>>>> Mariangela Hills
>>>>>>>>>>>>>>> Senior Technical Writer
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> *WSO2, Inc. *lean.enterprise.middleware.
>>>>>>>>>>>>>>> m: +94 773 500185
>>>>>>>>>>>>>>> w: http://wso2.com
>>>>>>>>>>>>>>>  <http://wso2.com/events/>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On Fri, Aug 1, 2014 at 12:59 PM, Akila Ravihansa Perera <
>>>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Great work, Chris!
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Will try it out.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> On Fri, Aug 1, 2014 at 12:56 PM, chris snow <
>>>>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>>>> > Hi All,
>>>>>>>>>>>>>>>> >
>>>>>>>>>>>>>>>> > I've added a wiki page here [1] with instructions for
>>>>>>>>>>>>>>>> running Stratos
>>>>>>>>>>>>>>>> > inside docker.
>>>>>>>>>>>>>>>> >
>>>>>>>>>>>>>>>> > Many thanks,
>>>>>>>>>>>>>>>> >
>>>>>>>>>>>>>>>> > Chris
>>>>>>>>>>>>>>>> >
>>>>>>>>>>>>>>>> > ---
>>>>>>>>>>>>>>>> > [1]
>>>>>>>>>>>>>>>> https://cwiki.apache.org/confluence/display/STRATOS/Running+Stratos+inside+docker
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>>> Akila Ravihansa Perera
>>>>>>>>>>>>>>>> Software Engineer
>>>>>>>>>>>>>>>> WSO2 Inc.
>>>>>>>>>>>>>>>> http://wso2.com
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Phone: +94 77 64 154 38
>>>>>>>>>>>>>>>> Blog: http://ravihansa3000.blogspot.com
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> --
>>>>>>>>>>>>>> Best Regards,
>>>>>>>>>>>>>> Nirmal
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Nirmal Fernando.
>>>>>>>>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>>>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Imesh Gunaratne
>>>>>>>>>>>>
>>>>>>>>>>>> Technical Lead, WSO2
>>>>>>>>>>>> Committer & PPMC Member, Apache Stratos
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> Best Regards,
>>>>>>>>>>> Nirmal
>>>>>>>>>>>
>>>>>>>>>>> Nirmal Fernando.
>>>>>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>>>>>
>>>>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Best Regards,
>>>>>>>>>> Nirmal
>>>>>>>>>>
>>>>>>>>>> Nirmal Fernando.
>>>>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>>>>
>>>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best Regards,
>>>>>>>> Nirmal
>>>>>>>>
>>>>>>>> Nirmal Fernando.
>>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>>
>>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best Regards,
>>>>>>> Nirmal
>>>>>>>
>>>>>>> Nirmal Fernando.
>>>>>>> PPMC Member & Committer of Apache Stratos,
>>>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>>>
>>>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards,
>>>> Nirmal
>>>>
>>>> Nirmal Fernando.
>>>> PPMC Member & Committer of Apache Stratos,
>>>> Senior Software Engineer, WSO2 Inc.
>>>>
>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>
>>>
>>>
>>
>>
>> --
>> Best Regards,
>> Nirmal
>>
>> Nirmal Fernando.
>> PPMC Member & Committer of Apache Stratos,
>> Senior Software Engineer, WSO2 Inc.
>>
>> Blog: http://nirmalfdo.blogspot.com/
>>
>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>

Reply via email to