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才可以上传镜像

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM