有人可以帮我吗?
我尝试构建镜像并将其发布到私有(private)Docker注册表:

kind: pipeline
name: default
steps:
- name: docker
  image: plugins/docker
  settings:
    username: ****
    password: ****
    repo: https://*****.com:5000/myfirstimage
    registry: https://*****.com:5000
    tags:
    - latest
但是出现了下一个错误:
Error parsing reference: "https://*****.com:5000/myfirstimage:latest" is not a valid repository/tag: invalid reference format
15921   time="2020-10-18T17:52:20Z" level=fatal msg="exit status 1"
但是,当我尝试手动 push 时,一切正常。
我究竟做错了什么?将不胜感激。

最佳答案

在Docker注册表和仓库的地址中包含该方案并不常见。
尝试写那些没有https://的地址,如

repo: <registry-hostname>.com:5000/myrepo/myfirstimage
registry: <registry-hostname>.com:5000

关于docker - 无人机CI- docker 插件-分析错误。为什么无人机无法解析?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/64417362/

10-11 07:57