k8s报错x509: certificate signed by unknown authority

时间:2024-03-24 08:54:21

[[email protected] harbor]# docker login https://hub.bosssoft.com
Username: admin
Password:
Error response from daemon: Get https://hub.bosssoft.com/v2/: x509: certificate signed by unknown authority
修改这个可以解决上面的报错
/usr/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd --insecure-registry hub.bosssoft.com
k8s报错x509: certificate signed by unknown authority
修改成私有仓库的域名
hosts文件中也要写上