centos7安装docker

ADMIN centos7 , docker 2021-01-20 11:47:10 705 次浏览 0条评论

QQ反馈群:1065433015

wget -O /etc/yum.repos.d/CentOS-Base.repo  http://mirrors.aliyun.com/repo/Centos-7.repo
uname -r
yum -y update
yum remove docker  docker-common docker-selinux docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install docker -y
systemctl start docker
systemctl enable docker