docker启动的centos容器使用systemctl功能

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_27901091/article/details/83386169

Failed to get D-Bus connection: Operation not permitted 错误的解决办法
启动的时候用如下命令

docker run -itd --name centos666 --privileged=true centos  /usr/sbin/init

–privileged=true
/usr/sbin/init

就是重点了。

猜你喜欢

转载自blog.csdn.net/qq_27901091/article/details/83386169
今日推荐