Solved: Connection issue to DB from Amazon Linux EC2 instance



[ec2-user@ip-xxx-xx-xx-xx ~]$ sudo vi /etc/docker/daemon.json

[ec2-user@ip-xxx-xx-xx-xx ~]$ sudo vi /etc/docker/daemon.json

[ec2-user@ip-xxx-xx-xx-xx ~]$ sudo cat /etc/docker/daemon.json

“bip”: “yyy.yyy.y.y/zz”

[ec2-user@ip-xxx-xx-xx-xx ~]$ sudo service docker stopStopping docker:                                           [  OK  ]

[ec2-user@ip-xxx-xx-xx-xx ~]$ sudo service docker startStarting docker: .                                  [  OK  ]

[ec2-user@ip-xxx-xx-xx-xx ~]$ ping

PING123.45.67.89 ( 56(84) bytes of data.

64 bytes from123.45.67.89: icmp_seq=1 ttl=61 time=27.2 ms

64 bytes from123.45.67.89: icmp_seq=2 ttl=61 time=26.9 ms

64 bytes from123.45.67.89: icmp_seq=3 ttl=61 time=27.3 ms

64 bytes from123.45.67.89: icmp_seq=4 ttl=61 time=27.4 ms

64 bytes from123.45.67.89: icmp_seq=5 ttl=61 time=27.5 ms

^C— ping statistics —5 packets transmitted, 5 received, 0% packet loss, time 4006msrtt min/avg/max/mdev = 26.901/27.286/27.539/0.283 ms

[ec2-user@ip-172-27-10-64 ~]$


Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s