title: Docker image not accessible over exposed port
body: <p>I've installed a tensorflow serving docker image in to the Swisscom AppCloud</p>
  
  <p><a href="https://github.com/tensorflow/serving/blob/master/tensorflow_serving/tools/docker/Dockerfile" rel="nofollow noreferrer">https://github.com/tensorflow/serving/blob/master/tensorflow_serving/tools/docker/Dockerfile</a></p>
  
  <p>Locally I'm able to call the REST endpoint over the port 8501</p>
  
  <p>Based on the logs I would say the docker image started fine on the AppCloud</p>
  
  <pre><code>2019-02-12 22:30:50 [APP/PROC/WEB/0] ERR 2019-02-12 21:30:50.937438: I tensorflow_serving/model_servers/server.cc:302] Exporting HTTP/REST API at:localhost:8501 ...
  2019-02-12 22:30:50 [APP/PROC/WEB/0] ERR [evhttp_server.cc : 237] RAW: Entering the event loop ...
  2019-02-12 22:30:52 [CELL/0] OUT Container became healthy
  </code></pre>
  
  <p>The dockerfile exposes two ports: 8500 for gRPC and 8501 for REST</p>
  
  <p>If I try to access the docker image through the mapped route e.g. <a href="https://predicition.scapp.io/" rel="nofollow noreferrer">https://predicition.scapp.io/</a> always a </p>
  
  <pre><code>502 Bad Gateway: Registered endpoint failed to handle the request.
  </code></pre>
  
  <p>is returned.</p>
  
  <p>Am I missing any additional configuration? My understanding is, that CF uses the exposed ports from the docker image to map the incoming traffic?</p>
  
  <hr>
  
  <p><strong>Update</strong></p>
  
  <p>If I check the route_mapping there is no port, could that be the issue?
  <a href="https://i.stack.imgur.com/C1nii.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C1nii.png" alt="enter image description here"></a></p>