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:
This makes the process to not daemonize.
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.