Get https://192.168.1.100:5000/v1/_ping: http: server gave HTTP response to HTTPS client

网上很多解决办法:
修改默认文件
sudo vim /etc/default/docker

修改:
DOCKER_OPTS="--registry-mirror=https://registry.docker-cn.com --insecure-registry=192.168.188.112:5000"

我试了但是都不起作用。

实测可用的办法:

在”/etc/docker/“目录下,创建”daemon.json“文件。在文件中写入:

{ "insecure-registries":["192.168.1.100:5000"] }

示例:

{
"registry-mirrors": [
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"],
"insecure-registries":["192.168.172.128:5000"]
}

 

你可能感兴趣的:(docker)