Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker gets container image and reports an error

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Dokcer gets container image and reports an error

[root@node1 ~] # docker pull nginx

Using default tag: latest

Trying to pull repository docker.io/library/nginx...

Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Because the domestic access speed of downloading the official mirror point is too slow, so the error is reported, and this problem can be solved by using an accelerator.

First open the configuration file daemon.json,centos to install this file, but you need to create your own file on ubuntu:

[root@node1 ~] # vim / etc/docker/daemon.json

Add to the file:

{

"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]"

}

Then restart the daemon:

[root@node1 ~] # systemctl daemon-reload

[root@node1 ~] # systemctl restart docker

You can use Ali's accelerator: https://yq.aliyun.com/articles/29941

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report