使用jenkins.war进行构建镜像报错如下:
ERROR:Invalid value specified for “tag”: invalid reference format
E1129 08:43:26.208848 1 s2i.go:122] Build failed, please check the error:
详细截图:


并且后面多次执行还会有这个报错提示限制:

麻烦研发同学看下

创建secret的时候,把协议去掉,在试一下,
按照这个文档https://kubesphere.io/docs/v2.1/zh-CN/installation/harbor-installation/#%E7%AC%AC%E4%BA%8C%E6%AD%A5%EF%BC%9A%E5%A1%AB%E5%86%99-harbor-%E4%BB%93%E5%BA%93%E4%BF%A1%E6%81%AF

    soulseen 现在报错这个:
    I1129 09:17:46.987077 1 docker.go:502] Image “kubesphere/tomcat85-java8-centos7:v2.1.0” not available locally, pulling …
    I1129 09:18:11.061003 1 docker.go:473] error inspecting image kubesphere/tomcat85-java8-centos7:v2.1.0: Error: No such image: kubesphere/tomcat85-java8-centos7:v2.1.0
    I1129 09:18:11.065883 1 docker.go:502] Image “kubesphere/tomcat85-java8-centos7:v2.1.0” not available locally, pulling …
    I1129 09:18:11.065883 1 docker.go:502] Image “kubesphere/tomcat85-java8-centos7:v2.1.0″ not available locally, pulling …
    I1129 09:18:25.440805 1 docker.go:583] pulling image error : Error response from daemon: Get https://registry-1.docker.io/v2/kubesphere/tomcat85-java8-centos7/manifests/v2.1.0: read tcp 172.16.5.23:53042->34.228.211.243:443: read: connection reset by peer

    kubesphere/tomcat85-java8-centos7:v2.1.0是内置的builder image。
    看日志像是网络问题,拉取镜像 time out 了。检查下集群中容器能正常访问dockerhub吗

      soulseen 我记得是我安装的时候修改了dockerhub的地址为国内的镜像地址的,为什么不使用呢?

      I1129 09:37:50.942171 1 docker.go:635] Begin to push image <harbor.devops.kubesphere.local:30280/lb/jenkins:latest>
      I1129 09:37:51.244426 1 docker.go:674] pushing image error : denied: requested access to the resource is denied
      I1129 09:37:51.244502 1 cleanup.go:33] Removing temporary directory /tmp/s2i323359468
      I1129 09:37:51.244558 1 fs.go:302] Removing directory ‘/tmp/s2i323359468′
      I1129 09:37:51.304416 1 errors.go:300] Details: denied: requested access to the resource is denied
      E1129 09:37:51.304394 1 errors.go:298] Suggested solution: check image name, or check if username and password provided are corrected
      I1129 09:37:51.304228 1 s2i.go:75] Build failed
      不知道为什么docker push失败了,没权限
      但是我在docker上面进行登陆成功了的:
      [root@master /]# docker login -u admin -p Harbor12345 http://harbor.devops.kubesphere.local:30280
      WARNING! Using –password via the CLI is insecure. Use –password-stdin.
      WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
      Configure a credential helper to remove this warning. See
      https://docs.docker.com/engine/reference/commandline/login/#credentials-store

      Login Succeeded

      配置了registry mirror 的话会走配置的地址。s2i拉取镜像是调用的宿主机的docker.sock。

      配置secret了吗,可以先看下s2i的文档。

      2 年 后

      我也碰到这样的问题,还有人关注这个问题么?镜像构建器,通过制品构建新的镜像–> jar
      日志
      E0628 09:54:37.318570 1 s2i.go:122] Build failed, please check the error:
      ERROR:Invalid value specified for “tag”: invalid reference format
      版本: KubeSphere 3.1.0

      可以替换下下面的镜像,应该可以看到更多的日志输出。

      ghcr.io/kubesphere/s2irun:3.1.1-rc.0