1.docker安装
1.安装docker
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-utils:yum管理工具包
device-mapper-persistent-data:设备映射包
lvm2:lvm包
2.安装docker源
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3.yun安装docker
yum -y install docker-ce-selinux-17.03.2.ce-1.el7.centos
4.创建加速器
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-‘EOF’
{
“registry-mirrors”: [“https://dzwue2eq.mirror.aliyuncs.com”]
}
EOF
5.启动服务
systemctl daemon-reload
启动网卡
systemctl restart docker