cloudfoundry/docs-cf-admin

Ambiguous! Isn't the container port always 8080 on Diego

Closed this issue · 2 comments

* Instructs Diego and the [Gorouter](../concepts/architecture/router.html) to route traffic to the lowest-numbered port exposed in the Docker image

What's the relationship between the lowest port exposed by the Docker image and $PORT (8080 on Diego) set by Cloud Controller?

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/150273355

The labels on this github issue will be updated when the story is started.

8080 is default, overridden by any explicit EXPOSE definitions in the Dockerfile. If ports are explicitly exposed, then CF traffic routes to lowest-number exposed port, and if not, it routes to 8080. Changed docs to explain. Thanks for the great question!