docker从私有镜像库pull/push镜像问题:Error response from daemon: Get https://harbor.op.xxxx.com/v2/: x509: certificate signed by unknown authority

时间:2017-11-24 17:00:32   收藏:0   阅读:15590


docker从私有镜像库pull/push镜像问题:Error response from daemon: Get https://harbor.op.xxxx.com/v2/: x509: certificate signed by unknown authority

环境centos7+docker 1.17

解决方法:
1. 添加https证书,方法自己搜下
2. 加--insecure-registry参数

配置文件位置
/usr/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd --insecure-registry harbor.op.xxxx.com

 

之前也搜到过ExecStart=/usr/bin/docker daemon -H fd:// --insecure-registry=xxx 这样的写法, docker无法启动,
报错: `docker daemon` is not supported on Linux. Please run `dockerd` directl

加上参数如果启动失败,可以看下日志 See "systemctl status docker.service" and "journalctl -xe" for details.

 

centos6也是 如此, centos6 + docker 1.7

配置文件位置

/etc/sysconfig/docker
参数加到
other_args

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!