zoukankan      html  css  js  c++  java
  • 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才可以上传镜像

  • 相关阅读:
    PowerDesigner生成sql及说明文档
    Visual Studio 2005 Team System & UML
    检查数据库数据字段命名规范与合法性的脚本
    常用的快速Web原型图设计工具
    用户需求说明书模板
    数据库设计说明书
    Visual SourceSafe 命名约定和限制
    需求管理工具DOORS介绍
    C#编码命名规则
    数据库对象命名规范
  • 原文地址:https://www.cnblogs.com/effortsing/p/10061154.html
Copyright © 2011-2022 走看看