docker httpd (pid 1) already running

发布时间:2020-06-22 14:27:29 作者:老K8
来源:网络 阅读:1187

分析原因是因为容器重启后 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

docker httpd (pid 1) already running

搜索

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

推荐阅读:
  1. Docker基础(2)——基础操作
  2. SaltStack自动化运维的安装和实现

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

docker httpd (pid 1 容器不停重启 dock

上一篇:[Unity3d]xml和Json的读写

下一篇:Proxmox【超融合】实现低准入高效构建企业内部私有云平台,让企业轻松步入云时代

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》