Docker入门教程:拉取镜像

docker拉取镜像命令

1
docker pull nginx

但是,最近国内墙了docker镜像源和国内源,再拉取镜像就会出现两个问题。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
hyper372@hyper372-test:~/Desktop$ sudo docker pull nginx
Using default tag: latest
latest: Pulling from library/nginx
c353fd29d8c5: Extracting [==================================================>] 21.64MB/21.64MB
98b095d7d2b4: Download complete
af5f0e3644c1: Download complete
latest: Pulling from library/nginx
e4fff0779e6d: Retrying in 1 second
9c4e4e507b08: Retrying in 1 second
85664e7b25d6: Download complete
e9d00ba15cc0: Waiting
ca3474dd2ca6: Waiting
472851929ad7: Waiting
ed60582f2661: Waiting
latest: Pulling from library/nginx
e4fff0779e6d: Retrying in 2 seconds
9c4e4e507b08: Downloading [==================> ] 15.33MB/41.83MB
85664e7b25d6: Download complete
e9d00ba15cc0: Waiting
ca3474dd2ca6: Waiting
472851929ad7: Waiting
ed60582f2661: Waiting
error pulling image configuration: download failed after attempts=6: read tcp 192.168.10.128:33072->104.16.97.215:443: read: connection reset by peer

这里面有两个错误,第一个是Pulling from library/nginx操作执行了三次,另一个是提示connection reset by peer都表示拉取失败,被墙了。

有效的镜像源

无效


Docker入门教程:拉取镜像
https://blog.jackeylea.com/docker/how-to-pull-image-from-hub/
作者
JackeyLea
发布于
2024年6月19日
许可协议