虚拟机中Centos7安装docker

发布时间 2023-07-07 16:52:12作者: 天天向上518

sudo yum install -y yum-utils device-mapper-persistent-data lvm2
-- 阿里云源
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

sudo yum install docker-ce-18.09.1   -- 使用该版本即可,高版本各个问题,奶奶的,其次要记得开启虚拟机的网络

sudo systemctl start docker