一:docker
- 卸载docker
yum -y remove containerd.io.x86_64 docker-ce.x86_64 docker-ce-cli.x86_64
- 查看docker是否安装
yum list installed | grep docker
- 安装docker
yum -y install docker
- 启动docker
systemctl start docker
- 查看docker服务状态
systemctl status docker
- 设为开机自启动
systemctl enable docker.servic
- 给docker.service文件添加执行权限
chmod +x /etc/systemd/system/docker.service
- 刷新加载配置文件(每次有修改docker.service文件时都要重新加载下)
systemctl daemon-reload