Docker容器中使用systemctl报错Failed to get D-Bus connection: Operation not permitted
在Docker容器中执行systemctl命令时,无论是启动nginx, 或者是vsftpd等服务,都会报如下错误。systemctl status vsftpdFailed to get D-Bus connection: Operation not permitted解决方法在启动容器时,需要加上--privileged参数来添加权限。不能使用默认的bash,而需要执行/usr/...
原创
2019-11-16 12:08:25 ·
815 阅读 ·
0 评论