Could not pull docker image


#1

Hi,

I am new to concourse and following the tutorial at https://concoursetutorial.com/basics/task-hello-world/
but getting below error.

$ fly -t tutorial execute -c task_hello_world.yml
executing build 2 at http://127.0.0.1:8080/builds/2
initializing
waiting for docker to come up...
Pulling busybox@sha256:2a03a6059f21e150ae84b0973863609494aad70f0a80eaeb64bddd8d92465812...
sha256:2a03a6059f21e150ae84b0973863609494aad70f0a80eaeb64bddd8d92465812: Pulling from library/busybox
90e01955edcd: Pulling fs layer
error pulling image configuration: <some IP>: i/o timeout
.
.
.
Failed to pull image busybox@sha256:2a03a6059f21e150ae84b0973863609494aad70f0a80eaeb64bddd8d92465812.resource script '/opt/resource/in [/tmp/build/get]' failed: exit status 1
errored

I could not understand this issue but seems to be related to proxy settings. Any help is highly appreciated. I have also modified the compose file to add the proxy and dns settings also but getting same error. Below are the contents of my docker-compose.yml
version: ‘3’

services:
  concourse-db:
    image: postgres
    environment:
    - POSTGRES_DB=concourse
    - POSTGRES_PASSWORD=concourse_pass
    - POSTGRES_USER=concourse_user
    - PGDATA=/database

  concourse:
    image: concourse/concourse:4.2.1
    command: quickstart
    privileged: true
    depends_on: [concourse-db]
    ports: ["8080:8080"]
    dns:
    - xx.xx.xx.xx
    - yy.yy.yy.yy
    - 8.8.8.8
    - 8.8.4.4
    environment:
    - CONCOURSE_GARDEN_DNS_SERVER=xx.xx.xx.xx
    - CONCOURSE_POSTGRES_HOST=concourse-db
    - CONCOURSE_POSTGRES_USER=concourse_user
    - CONCOURSE_POSTGRES_PASSWORD=concourse_pass
    - CONCOURSE_POSTGRES_DATABASE=concourse
    - CONCOURSE_EXTERNAL_URL
    - CONCOURSE_ADD_LOCAL_USER=admin:admin
    - CONCOURSE_MAIN_TEAM_LOCAL_USER=admin
    - http_proxy_url=http://proxy-sample.com:8080/
    - https_proxy_url=http://proxy-sample.com:8080/
    - HTTP_PROXY=http://proxy-sample.com:8080/
    - HTTPS_PROXY=http://proxy-sample.com:8080/

FYI, i am using centos7 machine with corporate proxy.
If i run docker (with proxy settings) externally its working fine:

$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
d1725b59e92d: Pull complete
Digest: sha256:0add3ace90ecb4adbf7777e9aacf18357296e799f81cabc9fde470971e499788
Status: Downloaded newer image for hello-world:latest

Hello from Docker!
This message shows that your installation appears to be working correctly.

#2

Hello kvinay, please edit your post, it is not very readable at the moment.

Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ````` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.


#3

Thanks marco-m for the help, i have modified the comment.