centos7安装docker

基础教程

centos7安装docker

2023-02-14 05:32







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