- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務(wù)經(jīng)營(yíng)許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會(huì )理事單位
- 安全聯(lián)盟認證網(wǎng)站身份V標記
- 域名注冊服務(wù)機構許可:滇D3-20230001
- 代理域名注冊服務(wù)機構:新網(wǎng)數碼
docker報錯:Failed to get D-Bus connection Operation not permitted的解決辦法
問(wèn)題:
Docker使用centos7鏡像創(chuàng )建容器后,在里面使用systemctl啟動(dòng)服務(wù)報錯:
Failed to get D-Bus connection: Operation not permitted
問(wèn)題復現:
#docker run -itd --name centos7 centos:7
#docker attach centos7
#yum install vsftpd
#systemctl start vsftpd
報錯:Failed to get D-Bus connection: Operation not permitted
解決辦法:
先把原先創(chuàng )建的容器停止服務(wù)并移除
#docker stop centos7
#docker rm centos7
以特權模式運行容器。
#docker run -d --name centos7 --privileged=true centos:7
進(jìn)入容器:
#docker exec -it centos7 / bin / bash
#yum install vsftpd
#systemctl start vsftpd
啟動(dòng)正常。
售前咨詢(xún)
售后咨詢(xún)
備案咨詢(xún)
二維碼
TOP