前戏

登录生产环境 ​​harbor ​​报错

Error response from daemon: Get https: x509: certificate signed by unknown authority_docker

解决方式

/lib/systemd/system/docker.service 文件里的 ExecStart= 行 

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

重启服务

systemctl daemon-reload
systemctl restart docker

Error response from daemon: Get https: x509: certificate signed by unknown authority_报错解决_02

登录测试

docker login 

Error response from daemon: Get https: x509: certificate signed by unknown authority_docker_03