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
• 6,880 points
461 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,620 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
• 42,540 points
457 views
+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,110 points

edited Oct 16, 2018 by lina 5,429 views
0 votes
1 answer

Docker unable to connect AWS EC2 cloud

Your command is not pointing to your ...READ MORE

answered Jul 16, 2018 in Docker by Kalgi
• 42,540 points
89 views
0 votes
1 answer
0 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
• 56,940 points
234 views
0 votes
1 answer