docker 无法下载私有库镜像

    xiaoxiao2021-03-25  105

    docker pull xxx.xxx.com Error: Invalid registry endpoint https://dl.dockerpool.com:5000/v1/: Get dockerpool.com:5000/v1/: EOF. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add `--insecure-registry http://www.dockerpool.com:5000` to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/dockerpool.com:5000/ca. 意思就是无法从https下载镜像。

    需要加个配置

    vim /usr/lib/systemd/system/docker.service

    按i编辑模式,输入以下

    ExecStart=/usr/bin/docker --insecure-registry x.x.x.x -H fd://

    按ESC 然后按: 输入wq 保存 service docker restart 重启docker
    转载请注明原文地址: https://ju.6miu.com/read-22910.html

    最新回复(0)