Docker login harbor Error response from daemon: Get https
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Docker login harbor Error response from daemon: Get https相关的知识,希望对你有一定的参考价值。
参考技术A 在Linux上登陆 harbor时候报错如下:根据上图的错误提示,应该是harbor不支持https登陆,而https是docker 默认的连接协议。
修复办法如下:
关于使用KubeSphere中的docker配置Harbor仓库http访问docker login登陆报错的解决办法
# 先进入harbor目录中,停止harbor
docker-compose down -v
# 然后修改docker相关文件
# 第一种方式:修改/etc/docker/daemon.json
{
"insecure-registries": ["192.168.75.100:10000"]
}
# 第二种方式:修改/usr/lib/systemd/system/docker.service
#ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
ExecStart=/usr/bin/dockerd --insecure-registry 192.168.75.100:10000 -H fd:// --containerd=/run/containerd/containerd.sock
# 个人比较倾向于采用第一种方式
# 最后再启动harbor
docker-compose up -d
# 查看harbor服务启动情况
# 只有服务状态都是Up (healthy)才行
cd /usr/local/harbor/
docker-compose ps
Name Command State Ports
---------------------------------------------------------------------------------------------------------------------------------------
chartmuseum /docker-entrypoint.sh Up (healthy) 9999/tcp
clair /docker-entrypoint.sh Up (healthy) 6060/tcp, 6061/tcp
harbor-core /harbor/harbor_core Up (healthy)
harbor-db /docker-entrypoint.sh Up (healthy) 5432/tcp
harbor-jobservice /harbor/harbor_jobservice ... Up (healthy)
harbor-log /bin/sh -c /usr/local/bin/ ... Up (healthy) 127.0.0.1:1514->10514/tcp
harbor-portal nginx -g daemon off; Up (healthy) 8080/tcp
nginx nginx -g daemon off; Up (healthy) 0.0.0.0:4443->4443/tcp, 0.0.0.0:80->8080/tcp, 0.0.0.0:443->8443/tcp
notary-server /bin/sh -c migrate-patch - ... Up
notary-signer /bin/sh -c migrate-patch - ... Up
redis redis-server /etc/redis.conf Up (healthy) 6379/tcp
registry /entrypoint.sh /etc/regist ... Up (healthy) 5000/tcp
registryctl /harbor/start.sh Up (healthy)
如有状态不对的,关闭重启harbor或者重启主机等
以上是关于Docker login harbor Error response from daemon: Get https的主要内容,如果未能解决你的问题,请参考以下文章
docker login harbor x509: certificate signed by unknown authority
关于使用KubeSphere中的docker配置Harbor仓库http访问docker login登陆报错的解决办法
本地docker不能登录远程harbor服务器,error response from daemon,error parsing http 403 response body
本地docker不能登录远程harbor服务器,error response from daemon,error parsing http 403 response body