Error unable to resolve host docker

0 votes

I used the command curl -fsSL | 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,040 points

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,370 points
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 23,926 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,140 points
+1 vote
2 answers
0 votes
1 answer