docker 无法下载私有库镜像
·
docker pull xxx.xxx.com
Error: Invalid registry endpoint https://dl.dockerpool.com:5000/v1/: Get https://www.dockerpool.com:5000/v1/_ping: 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/http://www.dockerpool.com:5000/ca.crt
意思就是无法从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)