容器中的centos7解决failed to get d-bus connection operation not permitted

mv /usr/bin/systemctl /usr/bin/systemctl.old
curl https://raw.githubusercontent.com/gdraheim/docker-systemctl-replacement/master/files/docker/systemctl.py > /usr/bin/systemctl
chmod +x /usr/bin/systemctl

参考链接:https://blog.csdn.net/witton/article/details/142366540

posted @ 2025-02-01 18:37  那一剑的風情  阅读(86)  评论(0)    收藏  举报