Docker Community Forums

Share and learn in the Docker community.

Error when building with a .yaml file

build

(Nedsteven) #1

Hello. I am new to docker and right now I am trying to build a container using a .yaml file.

Expected behaviour:

Actual behaviour:

Service 'servicename' failed to build: dial tcp: lookup auth.docker.io on 127.0.1.1:53: read udp 127.0.0.1:56593->127.0.1.1:53: i/o timeout

OS: Ubuntu 14.04 LTS

Docker version:

Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:10:36 2017
OS/Arch: linux/amd64

Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:09:12 2017
OS/Arch: linux/amd64
Experimental: false

Docker compose version:

docker-compose version 1.19.0-rc2, build a186c31
docker-py version: 2.7.0
CPython version: 2.7.13
OpenSSL version: OpenSSL 1.0.1t 3 May 2016


(Sam) #2

i posted a reply to this already, can we see the yaml file? not much to go on from the original post


(Nedsteven) #3

version: '3.3’
services:
api:
container_name: 'api’
build: './api’
ports:
- '8080:8080’
volumes:
- ‘./api:/go/src/app’