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