read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.

时间:2024-03-13 10:43:20

史上最详细配置阿里镜像加速器方法

遇到问题及解决过程

  我在centos 7下使用 docker pull mysql 命令安装mysql(我在SmarTTV软件上操作的),需要下载很多的文件,而且非常的慢,我甚至等了一下午,都还没有下载完,完了之后居然卡在一个地方不动了!它不动了!(心态直接爆炸),之后又等了许久,果不其然,它报错了!报错了啊!如下:

  read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.

  然后,我就上网查找,最后找到了。

错误原因

  原来是我们下载的mysql是外网的资源,所以下载的会非常慢,甚至会下载出错,所以需要配置一个国内的服务器,国内服务器有很多,我这里就说一下阿里镜像加速器的配置方法。

阿里镜像加速器配置方法

1.点击进入 阿里云
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.
2.点击右上角免费注册一个账户
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.
3.点击控制台,并打开左边导航栏
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.

4.搜索容器服务镜像服务,如下图:
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.
5.点击镜像加速器
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.
6.按照操作文档,找到对应平台的文档进行操作,我这里是CentOS
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.

7.新建一个目录

read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.

8.将下载地址修改为自己的阿里云加速器的地址
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.

9.重新加载配置文件
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.
10.重启docker
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.
11.再次安装mysql,我这里就下载的非常的快了,看着那从2g到4g的下载速度,瞬间泪崩了。
read tcp 192.168.43.212:44662->104.18.125.25:443: read: connection reset by peer.