参考https://www.cnblogs.com/niceyoo/p/13058238.html

    注意:搭建完成后推送时提示
    The push refers to repository [仓库地址/hello-world]
    Get 仓库地址/v2/: http: server gave HTTP response to HTTPS client

    需要修改私有仓库的/etc/docker/daemon.json
    添加如下内容:
    {
    “registry-mirrors”: [“http://hub-mirror.c.163.com“],
    “insecure-registries”:[“公网ip(或者域名):仓库映射的端口”]

    }

    然后重启
    systemctl restart docker