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