Why does the ejabberd container generated based on centos:7 mirror automatically exit when it is started?

  docker, question

I wrote a startup script after the official centos:7 image installed ejabberd, and then docker commit generated a new image. The container generated by the new image always quits after startup. Why is that?

It may be the problem of starting the script, or it may be that there are no tasks that have been suspended.