我是广场新手,并尝试在我的环境中设置它。我在 Windows 机器上的 Virtualbox 6.1.4 r136177 上运行 Ubuntu 18.04。我设法让节点运行并设置大厅工作人员,并且我能够成功访问我的大厅仪表板。当我尝试运行本页概述的简单的 hello world 管道时,出现了问题:https://concourse-ci.org/hello-world-example.html https://concourse-ci.org/hello-world-example.html
错误说:
[31mERRO [0m[0004] check failed: get remote image: Get https://index.docker.io/v2/: dial tcp: lookup index.docker.io on [::1]:53: read udp [::1]:55989->[::1]:53: read: connection refused
谷歌搜索类似的错误表明 virtualbox 可能无法连接到 docker 存储库。因此,我继续将 docker 安装到我的系统中并运行以下命令:
sudo docker run hello-world
但这一次docker成功拉取了镜像。所以我认为这不是我的虚拟机的问题。有没有人遇到过同样的问题并找到解决方案?
UPDATES
以下问题激励我建立自己的注册表:如何在 concourse-docker 中使用本地 docker 镜像作为资源 https://stackoverflow.com/questions/52499026/how-to-use-a-local-docker-image-as-resource-in-concourse-docker
我已经配置了本地 docker 注册表,并通过从我自己的注册表中提取图像来验证它是否可以正常工作。因此,我通过修改 hello world 示例配置了一个简单的大厅管道来使用我的注册表:
---
jobs:
- name: job
public: true
plan:
- task: simple-task
config:
platform: linux
image_resource:
type: docker-image
source:
repository: 127.0.0.1:5000/busybox
tag: latest
insecure_registries: [ "127.0.0.1:5000" ]
run:
path: echo
args: ["Hello, world!"]
但后来我遇到了以下错误:
resource script '/opt/resource/check []' failed: exit status 1
stderr:
failed to ping registry: 2 error(s) occurred:
* ping https: Get https://127.0.0.1:5000/v2: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers
* ping http: Get http://127.0.0.1:5000/v2: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers