插件/ docker(:latest和:17.05)管道(带有私有注册表v2)总是抛出“错误验证:退出状态1 ”
这是调试日志:
+ /usr/local/bin/dockerd -g /var/lib/docker
level=warning msg="the \"-g / --graph\" flag is deprecated. Please use \"--data-root\" instead"
level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found"
level=info msg="libcontainerd: new containerd process, pid: 15"
level=info msg="Graph migration to content-addressability took 0.00 seconds"
level=warning msg="Your kernel does not support swap memory limit"
level=warning msg="Your kernel does not support cgroup rt period"
level=warning msg="Your kernel does not support cgroup rt runtime"
level=info msg="Loading containers: start."
level=warning msg="Running modprobe bridge br_netfilter failed with message: modprobe: can't change directory to '/lib/modules': No such file or directory\n, error: exit status 1"
level=warning msg="Running modprobe nf_nat failed with message: `modprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1"
level=warning msg="Running modprobe xt_conntrack failed with message: `modprobe: can't change directory to '/lib/modules': No such file or directory`, error: exit status 1"
level=info msg="Default bridge (docker0) is assigned with an IP address 172.19.0.0/16. Daemon option --bip can be used to set a preferred IP address"
level=info msg="Loading containers: done."
level=info msg="Daemon has completed initialization"
level=info msg="Docker daemon" commit=89658be graphdriver=overlay2 version=17.05.0-ce
level=info msg="API listen on /var/run/docker.sock"
level=info msg="Error logging in to v2 endpoint, trying next endpoint: Get https://<DOMAIN>:5000/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
level=info msg="Error logging in to v1 endpoint, trying next endpoint: Get https://<DOMAIN>:5000/v1/users/: dial tcp <IP_ADDRESS>:5000: i/o timeout"
level=error msg="Handler for POST /v1.29/auth returned error: Get https://<DOMAIN>:5000/v1/users/: dial tcp <IP_ADDRESS>:5000: i/o timeout"
level=fatal msg="Error authenticating: exit status 1"
无人机服务器和无人机代理(试用过0.8和最新版本)在docker版本17.09.0-ce build afdb6d4和ubuntu 16.04下使用overlay2存储驱动程序运行。
我很确定这不是身份验证错误,因为我使用docker login登录到我的私有注册表,并且还在windows 10 Docker版本17.12.0-ce下成功运行管道,构建c97c6d6
而且,这是发布渠道:
publish:
image: plugins/docker:17.05
username: <USERNAME>
password: <PASS>
repo: <DOMAIN>:5000/project
registry: <DOMAIN>:5000
tag: ["1", "2"]
debug: true
答案 0 :(得分:0)
您的未配置私人注册表使用ssh模式,请参阅日志
level=info msg="Error logging in to v2 endpoint, trying next endpoint: Get https://<DOMAIN>:5000/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)"
level=info msg="Error logging in to v1 endpoint, trying next endpoint: Get https://<DOMAIN>:5000/v1/users/: dial tcp <IP_ADDRESS>:5000: i/o timeout"
插件/ docker支持不安全模式,请添加不安全:true attr即可。
steps:
- name: docker
image: plugins/docker
settings:
registry: <DOMAIN>:5000
repo: <DOMAIN>:5000/project/image
username: admin
password: Harbor12345
insecure: true