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,900 points
142 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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
• 35,800 points
175 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,100 points

edited Oct 16, 2018 by lina 2,030 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
• 35,800 points
32 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,120 points
60 views
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.