August 2017
Intermediate to advanced
332 pages
9h 16m
English
We mentioned a few times that the container exposes the port. In fact, if we dug deeper into the Tomcat image on GitHub (https://github.com/docker-library/tomcat), we can notice the following line in the Dockerfile:
EXPOSE 8080
This Dockerfile instruction expresses that the port 8080 should be exposed from the container. However, as we have already seen, this doesn't mean that the port is automatically published. The EXPOSE instruction only informs the users which ports they should publish.
Read now
Unlock full access