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 addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#‘ symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#    127.0.0.1       localhost
#    ::1             localhost

52.22.201.61 registry-1.docker.io

2.linux

vim /etc/hosts

在最后加上

52.22.201.61 registry-1.docker.io

重试 即可

原文地址:https://www.cnblogs.com/btxlc/p/10841047.html

时间: 2024-08-01 10:33:24

docker net/http: TLS handshake timeout 解决办法的相关文章

解决 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下载[[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 javaUsing default tag: latestTrying to pull repository docker.io/library/java ... latest: Pulling from docker.io/library/java5040bd298390: Pulling fs layer fce5728aad85: Pulling fs layer 76610ec20bf5: Waiting 6017

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.运行

Windows server 2012远程桌面服务(RDP)存在SSL / TLS漏洞的解决办法

1. 前言 为了提高远程桌面的安全级别,保证数据不被×××窃取,在Windows2003的最新补丁包SP1中添加了一个安全认证方式的远程桌面功能.通过这个功能我们可以使用SSL加密信息来传输控制远程服务器的数据,从而弥补了远程桌面功能本来的安全缺陷. 2.问题描述 在Windows server 2003和Windows server 2008,远程桌面服务SSL加密默认是关闭的,需要配置才可以使用:但 Windows server 2012默认是开启的,且有默认的CA证书.由于SSL/ TLS

Docker挂载主机目录Docker访问出现Permission denied的解决办法

Docker挂载主机目录,访问相应的文件出现Premission denied的权限访问问题, [[email protected] soft]# docker images REPOSITORY                 TAG                 IMAGE ID                  CREATED SIZE docker.io/centos            7.2.1511           686672a1d0cc               5

Docker [Warning] IPv4 forwarding is disabled解决办法

在创建一个dockerfile,执行yum 安装时报出如下错误, Step 3/8 : RUN yum install httpd -y ---> [Warning] IPv4 forwarding is disabled. Networking will not work. ---> Running in 9b62fa0252b1 解决办法 1.编辑 vim /etc/sysctl.conf配置文件,在最后面添加net.ipv4.ip_forward=1 2.重启网络服务service ne

使用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

使用docker时报错“net/http: TLS handshake timeout”的解决方案

自己使用成功,特此记录 消息来源:https://blog.csdn.net/qq_33575129/article/details/78196279 修改 /etc/docker/daemon.json 文件并添加上 registry-mirrors 键值. {  "registry-mirrors": ["https://registry.docker-cn.com"]} 修改保存后重启 Docker 以使配置生效. 原文地址:https://www.cnblo