阿里云安装docker
yum更新
yum update
yum install epel-release -y
yum clean all
yum list
安装并运行docker
yum install docker-io -y
systemctl start docker
检查安装结果
docker -v
docker info
启动docker
systemctl start docker # 运行docker的守护进程
重启docker
systemctl restart docker
关闭docker
systemctl stop docker