解决docker下载[[email protected] var]# docker pull java Using default tag: latest Try镜像出现 error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net......: net/http: TLS handshake timeout的问题

[[email protected] var]# docker pull java
Using default tag: latest
Trying to pull repository docker.io/library/java ...
latest: Pulling from docker.io/library/java
5040bd298390: Pulling fs layer
fce5728aad85: Pulling fs layer
76610ec20bf5: Waiting
60170fec2151: Waiting
e98f73de8f0d: Waiting
11f7af24ed9c: Waiting
49e2d6393f32: Waiting
bb9cdec9c7f3: Waiting
error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net/registry-v2/docker/registry/v2/blobs/sha256/d2/d23bdf5b1b1b1afce5f1d0fd33e7ed8afbc084b594b9ccf742a5b27080d8a4a8/data?Expires=1526065549&Signature=PK~0RcvGATZkFC7pw6dXSxzQ6Tj5n9tzwNZAC-56SV~hNhrxNu1SQfJQB4snQuy~iojnVCQF1jI063OGHccx7IrRrKgqiczJVltKpORMdKjPplx-WwJCc39lUpNA~0gkHbqCpCPD67HyGp1G688KxHJo5QPEvwC7W5Lai-sw3Ro_&Key-Pair-Id=APKAJECH5M7VWIS5YZ6Q: net/http: TLS handshake timeout

出现这个问题原因为国内网络问题,无法连接到 docker hub。 但国内有  daocloud加速,docker指定该源即可。

centos7处理办法如下,添加后重启docker :

[[email protected] var]# vim /etc/sysconfig/docker

红色字体为添加内容

# /etc/sysconfig/docker

# Modify these options if you want to change the way the docker daemon runs
OPTIONS=‘--selinux-enabled --log-driver=journald --signature-verification=false --registry-mirror=http://f2d6cb40.m.daocloud.io‘
if [ -z "${DOCKER_CERT_PATH}" ]; then
DOCKER_CERT_PATH=/etc/docker
fi

# Do not add registries in this file anymore. Use /etc/containers/registries.conf
# from the atomic-registries package.
#

# On an SELinux system, if you remove the --selinux-enabled option, you
# also need to turn on the docker_transition_unconfined boolean.
# setsebool -P docker_transition_unconfined 1

# Location used for temporary files, such as those created by
# docker load and build operations. Default is /var/lib/docker/tmp
# Can be overriden by setting the following environment variable.
# DOCKER_TMPDIR=/var/tmp

# Controls the /etc/cron.daily/docker-logrotate cron job status.
# To disable, uncomment the line below.
# LOGROTATE=false

# docker-latest daemon can be used by starting the docker-latest unitfile.
# To use docker-latest client, uncomment below lines
#DOCKERBINARY=/usr/bin/docker-latest
#DOCKERDBINARY=/usr/bin/dockerd-latest
#DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
#DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest

[[email protected] var]# service docker restart

[[email protected] var]# docker pull java
Using default tag: latest
Trying to pull repository docker.io/library/java ...
latest: Pulling from docker.io/library/java
5040bd298390: Pull complete
fce5728aad85: Pull complete
76610ec20bf5: Pull complete
60170fec2151: Pull complete
e98f73de8f0d: Pull complete
11f7af24ed9c: Pull complete
49e2d6393f32: Pull complete
bb9cdec9c7f3: Pull complete
Digest: sha256:5d6cc05636c16abb3e49f2117fd6aa4bddb8f0d775075972a8b9b03f754ea9f2
Status: Downloaded newer image for docker.io/java:latest

成功

原文地址:https://www.cnblogs.com/shanrenshiwoshifu/p/9025104.html

时间: 2024-10-07 04:31:14

解决docker下载[[email protected] var]# docker pull java Using default tag: latest Try镜像出现 error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net......: net/http: TLS handshake timeout的问题的相关文章

Docker pull 出现的 error pulling image configuration: Get https://dseasb33srnrn.cloudfront.net/

vim /etc/sysconfig/docker OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --registry-mirror=http://f2d6cb40.m.daocloud.io' systemctl daemon-reloadsystemctl restart docker 原文地址:https://www.cnblogs.com/cjsblogs/p/8695468

docker下来镜像error pulling image configuration:

错误信息:error pulling image configuration: Get https://production.cloudflare.docker.com/YV0f4%3D: x509: certificate has expired or is not yet valid --registry-mirror=http://f2d6cb40.m.daocloud.io 原文地址:https://blog.51cto.com/68686789/2359659

解决 Docker pull 出现的net/http: TLS handshake timeout 的一个办法

docker pull 时发生以下错误: 原因:不可描述(政府屏蔽了?) 解决思路:百度搜了下net/http: TLS handshake timeout 出现一个这个结果比较满意 http://dockone.io/article/876?utm_source=tuicool&utm_medium=referral 我不用官方的dockhub了,转而使用国内的仓库daocloud $ echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-

Docker pull下载出现 error pulling image configuration:

出现这个问题,并且在错误信息的最后附带 net/http: TLS handshake timeout: 猜测是docker的相关配置问题,导致无法通过TLS握手 执行如下命令修改配置 echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-mirror=http://f2d6cb40.m.daocloud.io\"" | sudo tee -a /etc/default/docker 然后就能使用docker pull 拉取镜像了

centOS7关于pull 命令时报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers

参考文件:https://www.cnblogs.com/icebutterfly/p/9489133.html 报错:get https://registry-1.docker.io/v2/:ner/http:TLS handshake timeout 或者 request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers 原因:连接不到 镜像库所致: 解决办法: 1.运行

Docker问题解决:Error response from daemon: Get https://registry-1.docker.io/v2/yandex/clickhouse-server/manifests/latest: net/http: TLS handshake timeout

方法1: vi /etc/docker/daemon.json { "registry-mirrors": ["http://hub-mirror.c.163.com"] } systemctl restart docker.service 方法2: vi /etc/sysconfig/docker OPTIONS='--selinux-enabled --log-driver=journald --registry-mirror=https://docker.mi

docker net/http: TLS handshake timeout 解决办法

1.windows 找到 C:\Windows\System32\drivers\etc\hosts 在最后加上 52.22.201.61 registry-1.docker.io 保存退出 # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP

使用docker时报错“net/http: TLS handshake timeout”

问题原因 :该命令默认从docker远端镜像仓库中拉取镜像,但由于远端仓库的服务器是在国外,我们国内有的用户很可能都访问不到 解决:使用国内镜像仓库 docker pull registry.docker-cn.com/myname/myrepo:mytag //标准格式 docker pull registry.docker-cn.com/library/ubuntu:16.04 //示例 为了永久性保留更改,您可以修改 /etc/docker/daemon.json 文件并添加上 regis

Docker报错: TLS handshake timeout”。

Docker 默认拉取国外镜像,换成国内就搞定. 为了永久性保留更改,您可以修改 /etc/docker/daemon.json 文件并添加上 registry-mirrors 键值. {  "registry-mirrors": ["your accelerate address"]}可参考如下阿里地址: https://yq.aliyun.com/articles/29941   原文地址:https://www.cnblogs.com/zhink/p/8608