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

  • 相关阅读:
    java中几个常见的Arrays下的类
    java二分查找法的实现过程
    java冒泡排序的实现过程
    java数组中选择排序的实现
    正则表达式
    StringBuilder的使用与总结
    String的几个常用API
    关于API,注释文档以及String
    关于sqlserve2000和sqlserver2005以后版本配置连接池的一些思路
    专题-X教育
  • 原文地址:https://www.cnblogs.com/effortsing/p/10061154.html
Copyright © 2020-2023  润新知