docker引擎:
基于centos7以上采取yum方式安装:
先安装必备软件:
yum install -y yum-utils device-mapper-persistent-data lvm2
添加阿里云为yum源:
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum clean all
yum makecache fast
yum -y install docker-ce
配置镜像加速器:
vi /etc/docker/daemon.json
{
"registry-mirrors": ["https://*********.mirror.aliyuncs.com"] ##加入自己的镜像加速器
}
systemctl daemon-reload
systemctl start docker
浙公网安备 33010602011771号