When using docker to pull the image, I keep getting an error get https://registry-1.docker.io/v2/: net / http: tls handshake timeout

When using docker to pull the image, I keep getting an error: tls handshake timeout, the main reason is that the image is pulled from a foreign address, which is very slow. So I chose to use Alibaba Cloud's mirror address, and the problem was successfully solved.

1. First enter the Alibaba Cloud Container Service website: https://cr.console.aliyun.com/

2. Find the mirror accelerator, you will get a dedicated mirror acceleration address on the left, and then modify the acceleration address to the obtained mirror address according to the following operation document.

3. At this point, the problem is solved perfectly, and the speed of pulling the image is fast enough to fly.

 

   

 

Guess you like

Origin www.cnblogs.com/wyhluckdog/p/12761493.html