辉_少

配置阿里云docker镜像地址
{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"]
}

 

安装docker前需要安装的依赖包:

yum install -y yum-utils device-mapper-persistent-data lvm2

使用阿里国内源安装docker

 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

yum list docker-ce --showduplicates | sort -r

yum makecache fast

yum install docker-ce -y

posted on 2019-02-14 20:50  辉_少  阅读(37777)  评论(0编辑  收藏  举报