1. 首先登录阿里云服务器
2. 首页搜索容器镜像服务,点立即开通
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/6bf10798769e17db22a9ec70b58fe7f6.png)
3. 找到镜像加速器,复制对应的命令,在linux中执行
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/a1f2b6a088681b69ef11624abc199c9b.png)
4.测试镜像加速器,从中央仓库镜像了一个tomcat。用了加速器之后还是非常快的
[root@VM_0_10_centos /]# docker pull tomcat
Using default tag: latest
latest: Pulling from library/tomcat
7e2b2a5af8f6: Pull complete
09b6f03ffac4: Pull complete
dc3f0c679f0f: Pull complete
fd4b47407fc3: Pull complete
bb40faab53a2: Pull complete
1015b1b4c9ac: Pull complete
dc9b56c32795: Pull complete
7cc86ac3141b: Pull complete
a87d3a3ed1af: Pull complete
4ef7fc58bece: Pull complete
Digest: sha256:1458fb9bb9d3d46d3129f95849233e31d82391723830ebd61441c24635460b84
Status: Downloaded newer image for tomcat:latest
docker.io/library/tomcat:latest
[root@VM_0_10_centos /]#
>多谢阿里-.-