I tried to run other sample image like basic Hello world program. It also does not work on local, then I try to find the problem the problem is with the IP Address, So I tried this command --> docker inspect container_id to find out the IP address, the IP Address was provided by the output for this command is working with the same port I given in the run command.
When I tried to do the same with my App, there is different IP allocated this time (as expected). Then I tried to open the page, it says connection refused.
I also tried to find the logs using sudo journalctl -fu docker.service but this also does not have any error logs as such, here is the logs
Apr 25 08:20:41 bird-Lenovo-ideapad-310-15IKB dockerd: time="2019-04-25T08:20:41.707369627+05:30" level=error msg="ad35651e88d93ab880ac1ddddde46e8639405e6ee92b1a63584b6df5cf6387b3 cleanup: failed to delete container from containerd: no such container"
Apr 25 08:20:41 bird-Lenovo-ideapad-310-15IKB dockerd: time="2019-04-25T08:20:41.707565389+05:30" level=error msg="Handler for POST /v1.39/containers/ad35651e88d93ab880ac1ddddde46e8639405e6ee92b1a63584b6df5cf6387b3/start returned error: driver failed programming external connectivity on endpoint web-test (f6bc299dfd701b5e77303e17064d526f5d6949d34931a8230534117b28f3283a): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use"
Apr 25 08:21:25 bird-Lenovo-ideapad-310-15IKB dockerd: time="2019-04-25T08:21:25.243379997+05:30" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/2c928816cc863d91e1d4a08d31f8ead837ed578daeb56ee83997b70ea5e0cd68/shim.sock" debug=false pid=14890
Apr 25 08:29:25 bird-Lenovo-ideapad-310-15IKB dockerd: time="2019-04-25T08:29:25.749551747+05:30" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/eb0801ab8f528ddd37816571386d58ac19345b03d7a4b268d0ba8dc29e798cfa/shim.sock" debug=false pid=15846
Is there anything else I need to do for finding out why the IP address belongs to my app does not work?