harbor报错解决

1、

[root@host-10-1-1-71 harbor]# docker login 10.1.1.71:5000
Username (admin):
Password:
Error response from daemon: Login: <html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
(Code: 404; Headers: map[X-Cache-Lookup:[MISS from host-10-1-1-161:3128] Via:[1.1 host-10-1-1-161 (squid/3.5.20)] Server:[nginx] Date:[Wed, 29 Aug 2018 06:41:45 GMT] Content-Type:[text/html] Content-Length:[162] X-Cache:[MISS from host-10-1-1-161]])

  

解决:

这台配置squid

在客户端设置代理方法

代理格式:proxy = http://username:password@proxy_ip:port
设置全局环境变量代理:
echo "export http_proxy="http://test0001:123@10.0.9.127:1404"" >> /etc/profile
echo "export https_proxy="http://test0001:123@10.0.9.127:1404"" >> /etc/profile
yum代理设置:
echo "proxy=http://test0001:123@10.0.9.127:1404" >> /etc/yum.conf
wget代理设置:
echo "http_proxy=http://test0001:123@10.0.9.127:1404/" >> /etc/wgetrc
echo "https_proxy=http://test0001:123@10.0.9.127:1404/" >> /etc/wgetrc
echo "ftp_proxy=http://test0001:123@10.0.9.127:1404/" >> /etc/wgetrc
curl代理设置:
echo "alias curl="curl -x http://test0001:123@10.0.9.127:1404"" >> ~/.bashrc
source /etc/profile

 


2、


[root@host-10-1-1-71 ~]# docker login 10.1.1.71:5000
Username (admin):
Password:
Error response from daemon: Get http://10.1.1.71:5000/v1/users/: http: error connecting to proxy http://10.1.1.161:3128/: dial tcp 10.1.1.161:3128: getsockopt: connection refused

 

解决:

启动squd

 

 

3、

[root@kube-node2 dokcerfile]# docker push 114.116.65.232:5000/library/jenkins/latest

denied: requested access to the resource is denied


解决:

其他节点要先登录harbor才可以上传镜像

 

转载于:https://www.cnblogs.com/effortsing/p/10061154.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值