docker登录私库时提示 x509: certificate signed by unknown authority
打开daemon.json
sudo vi /etc/docker/daemon.json
加入insecure-registries
{
"insecure-registries":["私库地址"]
}
重启docker
sudo systemctl restart docker
重新登录即可
docker login 私库地址 -u 用户名 -p 密码