为什么同一个镜像docker pull两次啊
Tofloor
poster avatar
ighack
deepin
2020-06-26 07:11
Author
  1. sudo docker pull tensorflow/tensorflow:latest-gpu
  2. latest-gpu: Pulling from tensorflow/tensorflow
  3. 7ddbc47eeb70: Pull complete
  4. c1bbdc448b72: Pull complete
  5. 8c3b70e39044: Downloading
  6. 45d437916d57: Download complete
  7. d8f1569ddae6: Download complete
  8. 85386706b020: Download complete
  9. ee9b457b77d0: Downloading
  10. ba76dd394d58: Download complete
  11. 257975142b4d: Download complete
  12. f41a1fbb4940: Download complete
  13. fdb48ae01855: Download complete
  14. 7be34d8326b1: Download complete
  15. 07e47fcee106: Download complete
  16. d1aa47ec9c67: Download complete
  17. 9bfed42b7d3e: Download complete
  18. 52a5fe293ce3: Download complete
  19. latest-gpu: Pulling from tensorflow/tensorflow
  20. 7ddbc47eeb70: Pulling fs layer
  21. c1bbdc448b72: Pulling fs layer
  22. 8c3b70e39044: Pulling fs layer
  23. 45d437916d57: Waiting
  24. d8f1569ddae6: Waiting
  25. 85386706b020: Waiting
  26. ee9b457b77d0: Waiting
  27. ba76dd394d58: Waiting
  28. 257975142b4d: Waiting
  29. f41a1fbb4940: Waiting
  30. fdb48ae01855: Waiting
  31. 7be34d8326b1: Waiting
  32. 07e47fcee106: Waiting
  33. d1aa47ec9c67: Waiting
  34. 9bfed42b7d3e: Waiting
  35. 52a5fe293ce3: Waiting
  36. error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/f5/f5ba7a196d564d9078574b7ac3e70723f500e04ad63fab9e4087133e4b90d0c0/data?verify=1593080129-o0j9WvUEwFBSXpqwIvFt2HJlkrM%3D: dial tcp 104.18.121.25:443: i/o timeout
Copy the Code
etc/docker/daemon.json
{
“data-root”:"/home/ighack/Documents/docker/data",
“registry-mirrors”:[“https://docker.mirrors.ustc.edu.cn
}
我明明只执行了一次命令。确pull两次。第一次走的还是国内源。第二次就不是。现在是我什么镜像都装不上
我换了几个国内的源。什么清华的啊,163的啊。阿里的啊
docker我也重装了好几次了


  1. Client:
  2. Debug Mode: false

  3. Server:
  4. Containers: 0
  5.   Running: 0
  6.   Paused: 0
  7.   Stopped: 0
  8. Images: 0
  9. Server Version: 19.03.11
  10. Storage Driver: overlay2
  11.   Backing Filesystem: extfs
  12.   Supports d_type: true
  13.   Native Overlay Diff: true
  14. Logging Driver: json-file
  15. Cgroup Driver: cgroupfs
  16. Plugins:
  17.   Volume: local
  18.   Network: bridge host ipvlan macvlan null overlay
  19.   Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
  20. Swarm: inactive
  21. Runtimes: runc
  22. Default Runtime: runc
  23. Init Binary: docker-init
  24. containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
  25. runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
  26. init version: fec3683
  27. Security Options:
  28.   apparmor
  29.   seccomp
  30.    Profile: default
  31. Kernel Version: 5.3.0-3-amd64
  32. Operating System: Deepin 20 Beta
  33. OSType: linux
  34. Architecture: x86_64
  35. CPUs: 12
  36. Total Memory: 15.58GiB
  37. Name: ighack-PC
  38. ID: D2GD:HJSA:TWN5:LPF2:HQI6:MPAR:23EA:TTKR:APK6:A2VB:ZNBA:W2FA
  39. Docker Root Dir: /home/ighack/Documents/docker/data
  40. Debug Mode: true
  41.   File Descriptors: 21
  42.   Goroutines: 35
  43.   System Time: 2020-06-25T22:55:14.264574802+08:00
  44.   EventsListeners: 0
  45. Registry: https://index.docker.io/v1/
  46. Labels:
  47. Experimental: false
  48. Insecure Registries:
  49.   127.0.0.0/8
  50. Registry Mirrors:
  51.   https://docker.mirrors.ustc.edu.cn/
  52. Live Restore Enabled: false
Copy the Code


Reply Favorite View the author
All Replies
avatar
Feng Yu
deepin
2020-06-26 17:33
#1
因为你第一次失败了,所以它fallback到了其他备选镜像站上。docker会依次尝试mirror-list配置的仓库,最后fallback到官方仓库上。你可以去看看docker的日志,是不是第一次失败了,所以docker用官方仓库进行了重试
Reply View the author
avatar
ighack
deepin
2020-06-26 22:38
#2
https://bbs.deepin.org/post/196384
因为你第一次失败了,所以它fallback到了其他备选镜像站上。docker会依次尝试mirror-list配置的仓库,最后f ...

可是我换了好几个镜像源都不行啊
Reply View the author
avatar
ighack
deepin
2020-06-26 22:58
#3
本帖最后由 ighack 于 2020-6-26 15:20 编辑

6月 26 14:52:29 ighack-PC dockerd[15275]: time="2020-06-26T14:52:29.218310691+08:00" level=error msg="Download failed: unknown blob"
6月 26 14:52:32 ighack-PC dockerd[15275]: time="2020-06-26T14:52:32.909652449+08:00" level=info msg="Attempting next endpoint for pull after error: unknown blob"
我找到这样的错误

我pull nginx也报这个错误
Reply View the author
avatar
Feng Yu
deepin
2020-06-27 00:16
#4
https://bbs.deepin.org/post/196384
6月 26 14:52:29 ighack-PC dockerd[15275]: time="2020-06-26T14:52:29.218310691+08:00" level=error msg ...

那就是报错了,所以尝试官方仓库去pull了,所以我的结论没毛病,因为我以前遇到过,所以研究过
Reply View the author