配置docker官方源并用yum安装docker

参考,https://www.cnblogs.com/JiangLe/p/6921320.html
如果建了docker.repo,还是找不到yum源,重新建一个docker-ce.repo
内容为:
[docker-ce-stable]
name=Docker CE Stable - b a s e a r c h b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / d o c k e r − c e / l i n u x / c e n t o s / 7 / basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/ basearchbaseurl=https://mirrors.aliyun.com/dockerce/linux/centos/7/basearch/stable
enabled=1
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-stable-debuginfo]
name=Docker CE Stable - Debuginfo b a s e a r c h b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / d o c k e r − c e / l i n u x / c e n t o s / 7 / d e b u g − basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/debug- basearchbaseurl=https://mirrors.aliyun.com/dockerce/linux/centos/7/debugbasearch/stable
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-stable-source]
name=Docker CE Stable - Sources
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/source/stable
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-edge]
name=Docker CE Edge - b a s e a r c h b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / d o c k e r − c e / l i n u x / c e n t o s / 7 / basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/ basearchbaseurl=https://mirrors.aliyun.com/dockerce/linux/centos/7/basearch/edge
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-edge-debuginfo]
name=Docker CE Edge - Debuginfo b a s e a r c h b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / d o c k e r − c e / l i n u x / c e n t o s / 7 / d e b u g − basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/debug- basearchbaseurl=https://mirrors.aliyun.com/dockerce/linux/centos/7/debugbasearch/edge
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-edge-source]
name=Docker CE Edge - Sources
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/source/edge
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-test]
name=Docker CE Test - b a s e a r c h b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / d o c k e r − c e / l i n u x / c e n t o s / 7 / basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/ basearchbaseurl=https://mirrors.aliyun.com/dockerce/linux/centos/7/basearch/test
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-test-debuginfo]
name=Docker CE Test - Debuginfo b a s e a r c h b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / d o c k e r − c e / l i n u x / c e n t o s / 7 / d e b u g − basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/debug- basearchbaseurl=https://mirrors.aliyun.com/dockerce/linux/centos/7/debugbasearch/test
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-test-source]
name=Docker CE Test - Sources
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/source/test
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-nightly]
name=Docker CE Nightly - b a s e a r c h b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / d o c k e r − c e / l i n u x / c e n t o s / 7 / basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/ basearchbaseurl=https://mirrors.aliyun.com/dockerce/linux/centos/7/basearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-nightly-debuginfo]
name=Docker CE Nightly - Debuginfo b a s e a r c h b a s e u r l = h t t p s : / / m i r r o r s . a l i y u n . c o m / d o c k e r − c e / l i n u x / c e n t o s / 7 / d e b u g − basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/debug- basearchbaseurl=https://mirrors.aliyun.com/dockerce/linux/centos/7/debugbasearch/nightly
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

[docker-ce-nightly-source]
name=Docker CE Nightly - Sources
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/source/nightly
enabled=0
gpgcheck=1
gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值