docker registry错误server gave HTTP response to HTTPS client

/etc/docker/daemon.json
{ "insecure-registries":["myregistry.example.com:5000"] }

或者使用 --insecure-registry flag
--insecure-registry=myip:5000

sudo service docker restart

https://github.com/distribution/distribution/issues/1874#:~:text=According to the https%3A%2F%2Fdocs.docker.com%2Fregistry%2Finsecure%2F%23deploy-a-plain-http-registry - message http%3A server,is invalid%2C ignore the error about the certificate.

posted @ 2021-07-07 22:13  崩溃大喵  阅读(157)  评论(0)    收藏  举报