飞:无法ping泊坞手注册表

问题描述 投票:1回答:1

我试图通过将输入任务传递到大厅来运行简单的构建。这是我的飞命令,

fly -t tutorial e -c inputs_required.yml -i some-important-input=.

和我的诗人

---
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

请注意,我不是代理人。我也无法ping https://registry-1.docker.io/v2/

docker concourse fly
1个回答
0
投票

原因很简单,您的主机无法访问docker注册表,默认情况下是docker.io

我不熟悉fly。但我认为你的yaml文件{ repository:busybox}中的图像源应该是一个特定的图像,可用于命令docker pull

另外,您可以先在主机上尝试本地图像。然后在一些远程注册表中尝试远程映像。

© www.soinside.com 2019 - 2024. All rights reserved.