Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker-machine instance is not talking to outside world ( i.e Internet )

Tags:

I was trying to connect to AWS instance using docker-machine Connection is done but it is giving error as

Error getting SSH command to check if the daemon is up: Something went wrong running an SSH command!

I also ssh'd into the instance and I also tried sudo apt-get update it was giving the error

Failed to fetch http://archive.ubuntu.com/ubuntu/dists/wily-backports/Release.gpg Temporary failure resolving 'archive.ubuntu.com

It looks like the instance is not talking to the outside world ( i.e Internet)
So Can anyone help me to resolve this issue , Thanks

like image 927
Sandeep Prabhu Avatar asked Sep 11 '17 11:09

Sandeep Prabhu


1 Answers

Even I had this similar issue, following these procedure resolved the issue and the instance was able to communicate with the outside world.

  1. ssh into the particular instance , modify the file /etc/resolv.conf
  2. within the file change the value nameserver to 169.254.169.253

this should work.

like image 63
pavan Avatar answered Oct 20 '22 06:10

pavan