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

harbor报错解决的更多相关文章

  1. sphinx :undefined reference to `libiconv' 报错解决办法

    sphinx :undefined reference to `libiconv' 报错解决办法   2013-11-30 21:45:39 安装sphinx时不停报错...郁闷在make时报错,错误 ...

  2. redis运用连接池报错解决

    redis使用连接池报错解决redis使用十几小时就一直报异常 redis.clients.jedis.exceptions.JedisConnectionException: Could not g ...

  3. linux下启动dbca或netmgr类的图形界面报错解决

    linux下启动dbca或netmgr类的图形界面报错解决    Xlib: connection to ":0.0" refused by server Xlib: No pro ...

  4. CentOS 6.5 Maven 编译 Apache Tez 0.8.3 踩坑/报错解决记录

    最近准备学习使用Tez,因此从官网下载了最新的Tez 0.8.3源码,按照安装教程编译使用.平时使用的集群环境是离线的,本打算这一次也进行离线编译,无奈一编译就开始报缺少jar包的错,即使手动下载ja ...

  5. spring boot jpa 使用update 报错解决办法

    在spring boot jpa 中自定义sql,执行update操作报错解决办法: 在@Query(...)上添加 @Modifying@Transactional注解

  6. eclipse创建的maven项目,pom.xml文件报错解决方法

    [错误一:]maven 编译级别过低 [解决办法:] 使用 maven-compiler-plugin 将 maven 编译级别改为 jdk1.6 以上: <!-- java编译插件 --> ...

  7. 搭建oracle linux虚拟机报错解决

    sysctl -P 报错解决办法问题症状修改 linux 内核文件 #vi /etc/sysctl.conf后执行sysctl  -P 报错error: "net.bridge.bridge ...

  8. Aasible中cryptography兼容性报错解决办法

    Aasible中cryptography兼容性报错解决办法 1 Ansible中使用ansible --version查看版本,报错信息如下: ERROR! Unexpected Exception, ...

  9. MyEclipse Server view报错解决方法

    MyEclipse Server view报错解决方法 方法/步骤     启动MyEclipse,弹出一个框,报错. ---------------------------------------- ...

随机推荐

  1. vs code 保存显示无法写入文件的解决方法

    右键文件夹点击属性 选择安全 把当前用户权限都勾选上就可以了

  2. Mongodb中的js语法

    定义一个变量 > var len = 10; For循环 这里的db和data都可以作为对象 save是方法 接收一个临时定义的对象 > for(var i = 0; i < len ...

  3. ES6学习笔记(对象新增方法)

    1.Object.is() ES5 比较两个值是否相等,只有两个运算符:相等运算符(==)和严格相等运算符(===).它们都有缺点,前者会自动转换数据类型,后者的NaN不等于自身,以及+0等于-0. ...

  4. wx小程序知识点(七)

    七.小程序提速与性能优化 参考大佬vicyao的文章 https://blog.csdn.net/wetest_tencent/article/details/61196522 (1)提高页面加载速度 ...

  5. 关于Environment类的使用

    import org.springframework.core.env.Environment; EnvironmentAware 如何引用这个类1.可以通过 @Autowired织入Environm ...

  6. 如何查看 SQL Server 执行的历史 SQL 语句记录?

    SELECT st.text as sql_statement, qs.creation_time as plan_last_compiled, qs.last_execution_time as p ...

  7. [深度学习] pytorch学习笔记(4)(Module类、实现Flatten类、Module类作用、数据增强)

    一.继承nn.Module类并自定义层 我们要利用pytorch提供的很多便利的方法,则需要将很多自定义操作封装成nn.Module类. 首先,简单实现一个Mylinear类: from torch ...

  8. maven项目创6 表现层整合

    springmvc.xm创建l 和 web.xml配置    ,报错先不管 springmvc.xml com.taotao.controller   空包 其中    资源映射   是等 web.x ...

  9. [HG]Market 题解

    题目描述 在比特镇一共有 \(n\) 家商店,编号依次为 \(1\) 到 \(n\). 每家商店只会卖一种物品,其中第 \(i\) 家商店的物品单价为 \(c_i\),价值为 \(v_i\),且该商店 ...

  10. linux环境下C++写TCP通信(一)

    #include<stdio.h> #include<string.h> //tcp #include<unistd.h> #include<sys/type ...