Error unable to resolve host docker

0 votes

I used the command curl -fsSL https://download.docker.com/linux/ubuntu/pgp | sudo apt-key add –

I’m getting an error that says “unable to resolve host docker”

Can someone help?

Jul 10, 2018 in Docker by Nilesh
• 7,060 points
5,938 views

1 answer to this question.

0 votes

This error occurs because its not a fully qualified dominium, machine has no dns setup coz it’s a local machine.

You can resolve this using two ways

  1. Edit the /etc/resolv.conf from the host in order to use external dns.
  2. Run docker with -dns option.
answered Jul 10, 2018 by Kalgi
• 2,680 points

Related Questions In Docker

0 votes
1 answer

Docker error cannot delete docker container, conflict: unable to remove repository reference

First, remove the container names $ sudo docker ...READ MORE

answered Jul 31, 2018 in Docker by Kalgi
• 52,340 points
7,574 views
0 votes
1 answer
+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,220 points

edited Oct 16, 2018 by lina 37,007 views
+2 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
7,722 views
+1 vote
2 answers
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP