插件/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 directoryn, 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 登录登录到我的私有注册表,并且还在 windows 10 Docker 版本 17.12.0-ce 下从 cli 成功运行管道,构建 c97c6d6
这是发布管道:
publish:
image: plugins/docker:17.05
username: <USERNAME>
password: <PASS>
repo: <DOMAIN>:5000/project
registry: <DOMAIN>:5000
tag: ["1", "2"]
debug: true
您的私有注册表未配置 使用 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"
插件/码头工人支持不安全模式,添加不安全:真正的吸引力就可以了。
steps:
- name: docker
image: plugins/docker
settings:
registry: <DOMAIN>:5000
repo: <DOMAIN>:5000/project/image
username: admin
password: Harbor12345
insecure: true