http: server gave HTTP response to HTTPS client
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导致的看看我的sys
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)