docker下载artifactory总是超时有什么办法吗?

来源:6-4 Jenkins集成Jira

他门说这就是人生

2020-08-18

[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: TLS handshake timeout
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/jfrog/artifactory-oss/manifests/latest: Get https://docker.bintray.io/v2/token?scope=repository%3Ajfrog%2Fartifactory-oss%3Apull&service=docker.bintray.io: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: TLS handshake timeout
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: TLS handshake timeout
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/jfrog/artifactory-oss/manifests/latest: read tcp 192.168.0.107:47044->119.81.184.206:443: read: connection reset by peer
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: TLS handshake timeout
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: TLS handshake timeout
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/jfrog/artifactory-oss/manifests/latest: Get https://docker.bintray.io/v2/token?scope=repository%3Ajfrog%2Fartifactory-oss%3Apull&service=docker.bintray.io: net/http: TLS handshake timeout
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: TLS handshake timeout
[root@localhost gaojingsi]# docker pull docker.bintray.io/jfrog/artifactory-oss
Using default tag: latest
Error response from daemon: Get https://docker.bintray.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

以上是我下载artifactory最新版的日志,总是下载失败。老师有什么好办法吗?谢谢。

ps:

我已经用了daocloud的国内镜像了,还是下载超时。

ps2:

[root@localhost gaojingsi]# docker info
Client:
 Debug Mode: false

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 19.03.12
 Storage Driver: overlay2
  Backing Filesystem: xfs
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 3.10.0-1127.18.2.el7.x86_64
 Operating System: CentOS Linux 7 (Core)
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 1.777GiB
 Name: localhost.localdomain
 ID: SH7K:RW3F:O2EX:XZAU:REWL:2VPT:KIP5:OLZC:KW3P:TKFF:R727:46VQ
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Registry Mirrors:
  http://f1361db2.m.daocloud.io/
 Live Restore Enabled: false

从以上信息看,用的是daocloud的镜像了,但是还是下不了。

写回答

3回答

清风

2020-08-18

看起来配置的 daocloud 国内镜像没有生效,还是连接的docker.bintray.io。

把 Docker info 打出来看看配置的 mirror 是否生效了,参考https://docs.docker.com/registry/recipes/mirror/


Configure the Docker daemon

Either pass the --registry-mirror option when starting dockerd manually, or edit /etc/docker/daemon.json and add the registry-mirrors key and value, to make the change persistent.

{
 "registry-mirrors": ["https://<my-docker-mirror-host>"]

}


0
6
清风
回复
他门说这就是人生
?????
2020-08-19
共6条回复

lemon_2021

2020-08-25

老师,我碰到了同样的问题,而且mirror也配置了,然后切换了各种网络也不行,能否提供个对应的tar?我这边通过docker import进去

0
3
清风
回复
lemon_2021
更新了代码库的 readme 文件,可以去看看
2020-08-26
共3条回复

清风

2020-08-20

换一个网络环境已解决

0
1
他门说这就是人生
对啊,老师
2020-08-20
共1条回复

SpringCloud+Kubernetes 微服务容器化交付实战

学习业界领先的持续交付方案

636 学习 · 104 问题

查看课程