Got a solution for it. We have to make sure that the entrypoint and CMD 
combination is capable enough to keep the container running. 

On Monday, 16 February 2015 15:47:15 UTC+5:30, swastika basu wrote:
>
> Hi All,
>
> I have some doubts with Docker Build Steps plugin (
> https://wiki.jenkins-ci.org/display/JENKINS/Docker+build+step+plugin). 
> Using this plugin we can create container from image and start the same 
> container as well. However I am stuck at one place, whenever I try to 
> create any container then try to start it, the container exists 
> immediately. The only success I got while I installed openssh server in the 
> container and then pass the command as /bin/sshd -D, is it the correct way 
> to do it ? we might have some other CMD as running some process like 
> executing some js file for node js container while it starts, what approach 
> should be appropriate for this?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/00d34f7b-3c6f-4c0d-b565-28ad5fdd6e65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to