docker守护运行老是自己退出怎么回事啊?
ringa_lee
ringa_lee 2017-04-24 09:09:29
0
2
578

我用Dockerfile生成镜像,CMD运行了sh脚本启动lnmp所有服务,现在是终端进去重新启动lnmp服务,一切ok,用-d启动后再查看就是退出状态,不知该如何调整…

ringa_lee
ringa_lee

ringa_lee

reply all(2)
迷茫

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

迷茫

Dockerfile file writing problems, for example, the JAVA service container TOMCAT cannot be successfully started using startup.sh and needs to be replaced with catalina.sh.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!