itgoyo / 500Days-Of-Github

⭐ 瞎JB折腾Mac/Linux/Windows过程中遇到的所有问题和解决方式 ⭐
https://itgoyo.github.io/500Days-Of-Github
142 stars 14 forks source link

docker pull 出错Get "https://registry-1.docker.io/v2/itgoyo/itgoyoup/blobs: net/http: TLS handshake timeout #294

Open itgoyo opened 2 years ago

itgoyo commented 2 years ago

解决方式: 您可以修改/etc/docker/daemon.json 文件并添加上 registry-mirrors 键值。

{  "registry-mirrors": ["https://registry.docker-cn.com"]}
sudo systemctl restart docker
itgoyo commented 2 years ago

{ "registry-mirrors" : [ "https://registry.docker-cn.com", "http://hub-mirror.c.163.com", "https://docker.mirrors.ustc.edu.cn", "https://cr.console.aliyun.com", "https://mirror.ccs.tencentyun.com" ] }

itgoyo commented 2 years ago

systemctl daemon-reload systemctl restart docker.service