http: server gave HTTP response to HTTPS client

来源:互联网 发布:sublime text3配置php 编辑:程序博客网 时间:2024/05/20 17:43

docker出现一下错误;

Error getting v2 registry: Get https://10.27.1.55:8887/v2/: http: server gave HTTP response to HTTPS client



看这个错误我真的以为是没加

--insecure-registry 10.27.1.55:8887


导致的

看看我的systemctl里的配置

[Unit]

Description=Docker Application Container Engine

Documentation=http://docs.docker.com

After=network.target rhel-push-plugin.socket

Wants=docker-storage-setup.service


[Service]

Type=notify

NotifyAccess=all

EnvironmentFile=-/etc/sysconfig/docker

EnvironmentFile=-/etc/sysconfig/docker-storage

EnvironmentFile=-/etc/sysconfig/docker-network

Environment=GOTRACEBACK=crash

ExecStart=/usr/bin/docker-current daemon \

          --exec-opt native.cgroupdriver=systemd \

          --insecure-registry 10.27.1.55:8887 \

          $OPTIONS \

          $DOCKER_STORAGE_OPTIONS \

          $DOCKER_NETWORK_OPTIONS \

          $ADD_REGISTRY \

          $BLOCK_REGISTRY \

          $INSECURE_REGISTRY

LimitNOFILE=1048576

LimitNPROC=1048576

LimitCORE=infinity

TimeoutStartSec=0

MountFlags=slave

Restart=on-abnormal

[Install]

WantedBy=multi-user.target



配置没错呀,百思不得其解


最终发现,是以前我配了一个proxy给docker

vi /etc/systemd/system/docker.service.d/http-proxy.conf



但是现在这个代理又套了一层代理,流量导向了其他地方于是就是跪了


把这个代理就好了

0 0
原创粉丝点击