Error response from daemon: Get https://xxx.com: http: server gave HTTP respons to HTTPS client

问题

# docker pull dockerhub.yonyou.com:5000/cwy-yzb:tomcat8-jdk8-v2

Error response from daemon: Get https://dockerhub.yonyou.com:5000/v2/: http: server gave HTTP response to HTTPS client

解决方法

在/etc/docker下,创建daemon.json文件,写入:

{ "insecure-registries":["dockerhub.yonyou.com:5000"]}

重启docker

# systemctl restart docker

你可能感兴趣的:(Docker)