Cannot launch the train-schedule app using the public IP and 8080

I am facing issues in launchig the train-schedule app from inside the docker container. I also tried launch the app from inside the container using 
sudo docker exec -it <container-id> bash -c 'curl http://localhost:8080'
I get the following error: Also i tried running the train-schedule app outside the linuxacademy environment even then the  web page was not reachable. please could someone help me. I need to get this working.
 

curl: (7) Failed to connect to localhost port 8080: Connection refused



  • post-author-pic
    Will B
    09-12-2018

    I tried that with one of my train-schedule images and it was working fine. Can you provide some more info? Are you using one of the pre-built image, or is it one you built yourself? If you built it, can you push the source code (with dockerfile) to github and share it?

  • post-author-pic
    schatte2003
    09-13-2018

    I am just using the one that has been provided with the course material


  • post-author-pic
    schatte2003
    09-13-2018

    Following is my machine details:

    schatte20034.mylabserver.com
    Public IP:
    34.223.7.214
    Provate IP:
    172.31.24.166
    Please can you help me i really need to get this working

  • post-author-pic
    schatte2003
    09-13-2018

    I just installed docker using yum on a centos vm and deployed the train-schedule app and then tried accessing it from a browser using the http protocol and port 8080

  • post-author-pic
    schatte2003
    09-13-2018

    [user@schatte20034 ~]$ sudo docker exec -it 8465c5706e61 bash -c 'curl https://localhost:8080'
    curl: (7) Failed to connect to localhost port 8080: Connection refused

    This is the error I am getting

Looking For Team Training?

Learn More