Question about images docker to POD

9 views
Skip to first unread message

phm...@gmail.com

unread,
Jul 21, 2017, 2:15:25 PM7/21/17
to Kubernetes user discussion and Q&A
hello everyone, I create one image using docker that have CentOS 7 + Jboss + any configurations to deploy my apllication. So, I commit my image and create my POD in Kubernetes, but, the POD only sucess run when I start the pod with any command run in console, for example monitoring the log of the jboss using tail -f. I would like know if when I create one image in docker, I need do anything to kubernetes acess my container whitin a POD. When I begin the POD without the tail -f the POD don't start whit sucess.

Rodrigo Campos

unread,
Jul 22, 2017, 12:10:06 AM7/22/17
to kubernet...@googlegroups.com
You need for the process to stay running, not fork and die. I don't know about jboss, but probably there is a way to not "daemonize".

This is entirely in the docker layer, you can probably reproduce it just running that container on your PC and play more easily. But, basically, if the command that is run when starting the container finishes, the docker container stops running and exit too.

For example, to run nginx in docker is quite common to specify the command as: 

nginx -g 'daemon off;'

This makes the process to not daemonize.

On Friday, July 21, 2017, <phm...@gmail.com> wrote:
hello everyone, I create one image using docker that have CentOS 7 + Jboss + any configurations to deploy my apllication. So, I commit my image and create my POD in Kubernetes, but, the POD only sucess run when I start the pod with any command run in console, for example monitoring the log of the jboss using tail -f. I would like know if when I create one image in docker, I need do anything to kubernetes acess my container whitin a POD. When I begin the POD without the tail -f the POD don't start whit sucess.

--
You received this message because you are subscribed to the Google Groups "Kubernetes user discussion and Q&A" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-use...@googlegroups.com.
To post to this group, send email to kubernet...@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages