当前位置:   article > 正文

Docker systemctl 不能使用 System has not been booted with systemd as init system (PID 1). Can‘t operate.

system has not been booted with systemd as init system (pid 1). can't operate.

root@1733a8f48e41:# systemctl

System has not been booted with systemd as init system (PID 1). Can't operate.

重启一个docker,后台运行:

#: docker run -itd --privileged=true --name s3fd-v2 -p 8080:8080 03f6b13a5450 /sbin/init

然后运行exec进入docker:

docker exec -it s3fd-v2 /bin/bash

容器执行systemctl

参考文献:

https://www.cnblogs.com/infoo/p/11900607.html

http://wiki.lwwhome.cn/?p=690

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/573250
推荐阅读
相关标签
  

闽ICP备14008679号