Docker存储库服务器向HTTPS客户端提供了HTTP响应

汤玛斯·卡卡莱克

我将Docker工具箱用于Windows,我正在尝试从此文档https://docs.docker.com/registry/deploying/运行私有Docker注册表

但这对我不起作用。之后的错误:

$ docker pull 192.168.99.100:5000/my-ubuntu

错误

$ docker pull 192.168.99.100:5000/image
Using default tag: latest
Error response from daemon: Get https://192.168.99.100:5000/v2/: http: server gave HTTP response to HTTPS client

我认为该错误是我的Docker客户端中的问题。

有关信息,这是我的码头工人信息

Containers: 6
 Running: 4
 Paused: 0
 Stopped: 2
Images: 19
Server Version: 17.06.0-ce
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 144
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: cfb82a876ecc11b5ca0977d1733adbe58599088a
runc version: 2d41c047c83e09a6d61d464906feb2a2f3c52aa4
init version: 949e6fa
Security Options:
 seccomp
  Profile: default
Kernel Version: 4.4.74-boot2docker
Operating System: Boot2Docker 17.06.0-ce (TCL 7.2); HEAD : 0672754 - Thu Jun 29 00:06:31 UTC 2017
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 995.8MiB
Name: default
ID: ZMCX:NXC7:3BSV:ZNWV:MDZO:FW26:6MX5:UWI6:NVRL:XP56:AKGC:Z3TW
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 47
 Goroutines: 56
 System Time: 2018-04-05T13:43:42.856720067Z
 EventsListeners: 0
Username: kacalek
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

如果我在Mac上尝试,那么Everythink非常完美。

您知道如何解决此错误吗?

非常感谢您的每一个回答!

Yuankun

好像您没有正确设置Docker Daemon。请注意以下几行:

Insecure Registries:
 127.0.0.0/8

尝试将以下行添加到Docker的daemon.json文件中,然后重新启动Docker Daemon:

"insecure-registries":["192.168.99.100:5000"]

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

Docker API调用返回“服务器向HTTPS客户端提供了HTTP响应”

http:服务器在Golang httptest中向HTTPS客户端提供了HTTP响应

http:服务器向HTTPS客户端提供了HTTP响应

保险柜错误,服务器向HTTPS客户端提供了HTTP响应

Argo工件给出错误“ http:服务器向HTTPS客户端提供了HTTP响应”

连接期间发生错误:... http:服务器在具有远程主机的任何docker命令上向HTTPS客户端提供了HTTP响应

私有注册表推送失败:服务器向HTTPS客户端提供了HTTP响应

Hashicorp保险库-客户端向HTTPS服务器发送了HTTP请求-准备情况探针

在Win 8.1上使用Docker运行PhpStorm:客户端向HTTPS服务器发送了HTTP请求

从我们的服务器向客户端发送HTTP响应

ModeShape服务器-客户端存储库同步

表示http客户端连接到服务器,https客户端无法连接到服务器

客户端JS向nodejs express服务器发送数据并响应

即使没有从客户端提供回调,也可以从服务器发送响应吗?

从http服务器向客户端发送图像失败

从客户端向服务器发送对象

从客户端向服务器发送图像

从客户端向服务器发送大量数据

如何从服务器向客户端发送消息

如何从服务器向客户端发送更新?

从服务器向 websocket 客户端发送消息

向/从客户端/服务器发送对象

服务器向客户端发送消息

Docker-来自守护程序的错误响应:客户端比服务器更新

是否应该为服务器的异步响应而更改HTTP客户端?

如何使用客户端JavaScript从服务器访问HTTP响应?

客户端无法获取服务器响应

读取客户端响应使服务器崩溃

Javascript客户端从服务器获取响应