1

I'm trying to build a Docker image which contain a Node container (you can check the code here)

And when I run a docker compose up -d, I'm welcomed with this error

Building node
Step 1/2 : FROM node:latest
ERROR: Service 'node' failed to build: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:57055->[::1]:53: read: connection refused

I'm running Docker for Windows with Hyper-V and the diagnostic ID is EC5B82D9-E059-45C4-A909-C7A062429C98/2017-09-20_22-51-57 if you want to check it.

Anybody would have an idea?

2 Answers 2

2

Try setting the DNS Server to 8.8.8.8 manually in the docker settings.

$ echo "nameserver 8.8.8.8" >> /etc/resolv.conf
Sign up to request clarification or add additional context in comments.

Comments

0

I had the same error today (with dial tcp) A reinstallation of docker did the trick.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.