https://blog.csdn.net/zhenliang8/article/details/78330658

 


 

创建容器:

# docker run -d -name centos7 --privileged=true centos:7 /usr/sbin/init

进入容器:

# docker exec -it centos7 /bin/bash

这样可以使用systemctl启动服务了。

相关文章:

  • 2022-01-10
  • 2022-01-09
  • 2021-08-14
  • 2021-05-24
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2022-12-23
  • 2021-12-10
  • 2021-12-10
  • 2021-05-17
相关资源
相似解决方案