合 在docker中启动服务报错:New main PID 558 does not belong to service
在docker中启动服务报错: New main PID 558 does not belong to service, and PID file is not owned by root. Refusing.
前言
使用docker搭建服务环境,拉取了一个Centos7镜像,在镜像中使用 systemctl
命令启动 sladpd
服务,已经使用 --privileged=true
启用特权模式,但还是报错。
docker 启动命令如下:
1 2 | docker run -itd --name=ldap --privileged=true -v \ -p 80:80 -p 389:389 centos:7 /usr/sbin/init12 |