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 123.45.67.89
PING123.45.67.89 (123.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—123.45.67.89 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 ~]$