问题描述
阿里云的云服务器操作系统是ubuntu14.04这里是日志:INFO[2118]POST/v1.18/containers/desperate_ritchie/startINFO[2118]+jobstart(desperate_ritchie)INFO[2118]+joballocate_interface(bdde154502c29ab8fa2b975e8bac4aa19a4b86edc02a102b2f3e52457bb69e23)INFO[2118]-joballocate_interface(bdde154502c29ab8fa2b975e8bac4aa19a4b86edc02a102b2f3e52457bb69e23)=OK(0)INFO[2118]+joblog(start,bdde154502c29ab8fa2b975e8bac4aa19a4b86edc02a102b2f3e52457bb69e23,ubuntu:latest)INFO[2118]-joblog(start,bdde154502c29ab8fa2b975e8bac4aa19a4b86edc02a102b2f3e52457bb69e23,ubuntu:latest)=OK(0)INFO[2118]-jobstart(desperate_ritchie)=OK(0)INFO[2118]+joblog(die,bdde154502c29ab8fa2b975e8bac4aa19a4b86edc02a102b2f3e52457bb69e23,ubuntu:latest)INFO[2118]-joblog(die,bdde154502c29ab8fa2b975e8bac4aa19a4b86edc02a102b2f3e52457bb69e23,ubuntu:latest)=OK(0)INFO[2118]+jobrelease_interface(bdde154502c29ab8fa2b975e8bac4aa19a4b86edc02a102b2f3e52457bb69e23)INFO[2118]-jobrelease_interface(bdde154502c29ab8fa2b975e8bac4aa19a4b86edc02a102b2f3e52457bb69e23)=OK(0)
请问各位大神,为何我一start容器,明明start成功了。docker马上又给我die掉?如何解决?PS,使用dockerrun-it镜像ID/bin/bash可成功进入,但dockerstart已经关闭的容器时无法启动的。
解决方案
解决方案二:
可以安装进程管理器supervisor
解决方案三:
查看入口文档是否正确
解决方案四:
dockerrun-it镜像ID/bin/bash可成功进入,但dockerstart已经关闭的容器时无法启动的。是不是没有加参数-d?作为daemon在后台运行.