1、安装docker
yum install docker
echo "{"registry-mirrors": ["https://01sy6s7g.mirror.aliyuncs.com"]}" > /etc/docker/daemon.json
systemctl restart docker
systemctl enable docker
2、下载centos7镜像
docker pull centos:centos7.9.2009
3、运行容器
docker run -itd eeb6ee3f44bd /usr/sbin/init # /usr/sbin/init 可以使用systemctl
进入容器
docker exec -it ceb53457c8fe /bin/bash
4、安装程序
5、
标签:容器,centos7,init,systemctl,镜像,docker From: https://www.cnblogs.com/chenjiye/p/16955119.html