分析原因是因为容器重启后 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
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。