how to keep a container alive with docker build step plugin

163 views
Skip to first unread message

swastika basu

unread,
Feb 16, 2015, 5:17:15 AM2/16/15
to jenkins...@googlegroups.com
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?

swastika basu

unread,
Feb 17, 2015, 12:57:53 AM2/17/15
to jenkins...@googlegroups.com
Got a solution for it. We have to make sure that the entrypoint and CMD combination is capable enough to keep the container running. 
Reply all
Reply to author
Forward
0 new messages