Dial tcp: lookup 127.0.1.1:53 no such host

  docker, gitlab-ce, gitlab-ci-runner

I have installed Gitlab CE on my Ubuntu virtual machine on VMWare and configured a Gitlab runner which is running fine. In my script I am trying and building docker with the following commands:

 - docker build -t ${docker_image} .
 - docker run -d -p 80:80 ${docker_image}

but I am getting the following error:

error during connect: Post http://docker:2375/v1.24/build?buildargs=%7B%7D&cachefrom=%5B%5D&cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile&labels=%7B%7D&memory=0&memswap=0&networkmode=default&rm=1&shmsize=0&t=abds-ui%3Alatest&target=&ulimits=null&version=1: dial tcp: lookup docker on 192.168.12.2:53: no such host
ERROR: Job failed: exit code 1

Thanks in advance.

Source: Docker Questions

LEAVE A COMMENT