A docker machine instance does not talk to the outside world (i.e. the Internet)

I tried to connect to an AWS instance using docker-machine . The connection is completed, but it gives an error like

Error getting SSH command to check if daemon is running: something went wrong using SSH command!

I also ssh'd to the instance, and I also tried sudo apt-get update , it threw an error

Failed to get http://archive.ubuntu.com/ubuntu/dists/wily-backports/Release.gpg Temporary troubleshooting 'archive.ubuntu.com

It seems that the instance is not talking to the outside world (i.e. the Internet)
So can anyone help me solve this problem, thanks

+5
source share
1 answer

Even I had a similar problem, following this procedure, resolved the problem, and the instance was able to contact the outside world.

  • ssh to a specific instance, modify the /etc/resolv.conf file
  • in the file change the value of nameserver to 169.254.169.253

this should work.

+4
source

Source: https://habr.com/ru/post/1271688/


All Articles