dockerhttpd(pid1)alreadyrunning-创新互联
分析原因是因为容器重启后 httpd.pid 未删除,导致重启的时候检测到 apache 服务在运行
error
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
httpd (pid 1) already running
root@ubuntu:/var/lib/docker/overlay2#
docker container inspect 7e336d136e827e8b3daffbd80363d0daf4d0a40a54c5dfda85727bfdf1e9f7e5
搜索
root@ubuntu:/var/lib/docker/overlay2# find ./ -name apache2.pid
删除
root@ubuntu:/var/lib/docker/overlay2# rm -rf ./92cce34fc1ca4585ec25d729949f573a92b39ac0dd7f2fc8cc42b5a17016afb4/diff/run/apache2/apache2.pid
即可启动容器了
如果使用了容器编排的方式,请参考操作
https://forums.docker.com/t/httpd-already-running/33397
另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。
网站栏目:dockerhttpd(pid1)alreadyrunning-创新互联
分享路径:http://pwwzsj.com/article/diijci.html