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
4,903 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,350 points
5,864 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 34,245 views
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,020 points
2,739 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