我在 Windows 上使用 Docker 工具箱,我正在尝试从此文档 https://docs.docker.com/registry/deploying/ 运行私有(private) 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 客户端中的错误。

有关信息,这是我的 docker info
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 是完美的。

你知道这个错误到 是如何解决 的吗?

非常感谢你的每一个答案!

最佳答案

看起来您没有正确设置 Docker 守护程序。注意这几行:

Insecure Registries:
 127.0.0.0/8

尝试将此行添加到 Docker 的 daemon.json 文件并重新启动 Docker 守护程序:
"insecure-registries":["192.168.99.100:5000"]

关于windows - Docker 存储库服务器向 HTTPS 客户端提供 HTTP 响应,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/49674004/

10-16 22:33
查看更多