Docker容器里的centos、unbuntu无法使用 systemctl 命令的解决方案
据说在 LinuxDocker中无法使用 systemd(systemctl) 相关命令的原因是 1号进程不是 init ,而是其他例如 /bin/bash ,所以导致缺少相关文件无法运行。(System has not been booted with systemd as init system (PID 1). Can't operat)解决方案:/sbin/init例如:Ubun...