0
点赞
收藏
分享

微信扫一扫

docker~使用阿里加速器安centos

栖桐 2022-08-25 阅读 103

​​回到目录 ​​

上一篇说了hub.docker.com里拉个镜像太,而阿里云为我们做了不少本国镜像,这样下载的速度就很惊人了,下面看一下在centos7下配置阿里云加速器的方法

打开服务配置文件  vi /etc/yum.repos.d/CentOS-Base.repo   

将mirrorlist地址改为咱们阿里云加速器的地址

docker~使用阿里加速器安centos_docker

docker~使用阿里加速器安centos_支付宝_02

然后ESC,:wq,保存退出

查看一下docket服务的运行状态,systemctl status docker

docker~使用阿里加速器安centos_docker_03

从阿里云拉个centos的docker镜像下来,docker pull centos,我们可以看到,速度相当的快!

docker~使用阿里加速器安centos_docker_04

2分钟过后,已经下载完成!

docker~使用阿里加速器安centos_支付宝_05

我们使用一下centos的镜像,docker run centos echo hello world

docker~使用阿里加速器安centos_docker_06

下面我们查看一下所有的镜像,docker ps -l

docker~使用阿里加速器安centos_centos_07

下一讲,我们将学习吧centos的容器下,做点事了!

​​回到目录 ​​

作者:仓储大叔,张占岭,
荣誉:微软MVP



举报

相关推荐

0 条评论