Container start problem
Many times it happens when we try to access the URL, It won't load the page. So we check our container is running or not using below command,
For running container
docker ps
For all containers
docker ps -a
If it shows exited as shown in screenshot below,
You can check logs by typing first 3 latters of Container ID. In out case it is
b62
.This error states it is not able to communicate to one of the SQL server and asking me to add 110.225.212.202 in the SQL firewall.
But even after adding the IP, the container runs for sometime and I got same error even after running the container multiple times.
docker start b62
So I checked the actual Public IP of the container by using the below command,
docker exec -it b62 curl http://ipinfo.io/ip
And I got below actual IP which was different,
So, I added IP in my SQL server firewall. And It started working.