# Docker Troubleshooting

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716551224483/3a108923-aa94-4c6f-b013-069e50228493.webp align="center")

1. **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
        
        ```bash
        docker ps
        ```
        
    * For all containers
        
        ```bash
        docker ps -a
        ```
        
    * If it shows exited as shown in screenshot below,
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716546346151/94417420-6c07-4d30-b966-82e68b04412e.png align="center")
        
        You can check logs by typing first 3 latters of Container ID. In out case it is `b62`.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716546817001/a0189eb9-a2ca-41c9-bba0-2bd4095cbf5e.png align="center")
        
        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.
        
        ```bash
        docker start b62
        ```
        
        So I checked the actual Public IP of the container by using the below command,
        
        ```bash
        docker exec -it b62 curl http://ipinfo.io/ip
        ```
        
        And I got below actual IP which was different,
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716547457950/e382166b-4d7a-4a21-a1c3-0dcbbce1e61f.png align="center")
        
        So, I added IP in my SQL server firewall. And It started working.
        
        ![](https://cdn.hashnode.com/res/hashnode/image/upload/v1716547530904/1d717162-38f9-4c0d-91f9-55784145b1cc.png align="center")
