docker 无法下载私有库镜像

来源:互联网 发布:mac忘记密码怎么关机 编辑:程序博客网 时间:2024/05/16 11:53

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


0 0
原创粉丝点击