Error response from daemon: Get https://10.1.8.15:5000/v2/: http: server gave HTTP response to HTTPS

docker push error

  • Error response from daemon: Get https://10.1.8.15:5000/v2/: http: server gave HTTP response to HTTPS client

The reason: docker Mirror warehouse does not support https

Under linux solution

solution:

In the "/ etc / docker /" directory, create a "daemon.json" file (if any direct coverage). Written in the file

{ “insecure-registries”:[“10.1.8.15:5000”] }

Then restart the docker services

OK it

Under Mac OS solutions

$ Vim ~ / .docker / daemon.json
add the following ip and port
{ "insecure-registries": [ "10.1.8.15:5000"]}

Guess you like

Origin blog.csdn.net/weixin_32393347/article/details/104921595