Concourse could not pull docker images from public registry

#1

I’m getting the following error, when executing a new task(running on my laptop local machine):

ci:$ fly -t tutorial execute -c task_hello_world.yml
executing build 1 at http://127.0.0.1:8080/builds/1
initializing

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)

Steps to reproduce:

OS Ubuntu 18.10

  • Create docker-compose.yml file
  • Run docker-compose up
  • Log in using fly --target tutorial login --concourse-url http://127.0.0.1:8080 -u test -p test
  • Execute a new task fly -t tutorial execute -c task_hello_world.yml
1 Like

#2

Hi, I was getting this error running concourse on aws with Ubuntu 18.04 I was running concourse without docker. My issue stopped after switching from Ubuntu to Amazon Linux2

0 Likes