Docker daemon always exits itself. What’s the matter?

  docker, question

I use Dockerfile to generate the image, CMD runs sh script to start all lnmp services, now the terminal goes in to restart lnmp services, everything is ok, check after starting with -d is the exit status, I don’t know how to adjust …

Because lnmp is not a sustainable command, it will not run in the background.
Let’s start the container through docker start.