我试图通过将输入任务传递给汇合来运行一个简单的构建。这是我的飞行指挥,
fly -t tutorial e -c inputs_required.yml -i some-important-input=.还有我的yml文件
---
platform: linux
image_resource:
type: docker-image
source: {repository: busybox}
inputs:
- name: some-important-input
run:
path: ls
args: ['-alR']我收到了下面的错误信息,
resource script '/opt/resource/check []' failed: exit status 1
stderr:
failed to ping registry: 2 error(s) occurred:
* ping https: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
* ping http: Get http://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
errored请注意,我不是代理背后的人。我也不能平https://registry-1.docker.io/v2/。
发布于 2018-09-04 06:54:46
简单的原因是主机无法到达默认情况下为docker.io的停靠器注册表。
我不熟悉fly。但是我认为yaml文件{ repository:busybox}中的图像源应该是一个特定的图像,可以在命令docker pull中使用。
另外,您可以先在主机上尝试本地映像。然后在远程注册表中尝试远程图像。
https://stackoverflow.com/questions/52145858
复制相似问题