1. 升级插件
yum -y update
2. 安装插件
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3. 安装docker ,并加入启动项
yum install docker-ce
systemctl start docker
yum -y update
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install docker-ce
systemctl start docker
本文标题:centos 7 安装 dockr
本文链接:https://www.haomeiwen.com/subject/yggnlctx.html
网友评论