如题docker提示Failed to get D-Bus connection: Operation not permitted
这是因为在创建容器时,权限不足
如何实现呢
查看容器
>root@ip-172-31-4-167:~# `docker images`
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu 20.04 4dd97cefde62 7 weeks ago 72.9MB
centos centos7 8652b9f0cb4c 5 months ago 204MB
pengchujin/v2ray_ws 0.11 adf1338c923d 6 months ago 131MB
创建容器
>docker run -d --name="centos" -p 8888:8888 -p 80:80 --privileged=true 8652b9f0cb4c /usr/sbin/init