One of the 50 questions in this topic
How much do you know about Docker?The EXPOSE statement informs Docker that the container listens on the specified ports during execution. It doesn't actually publish the ports; serves as documentation and to enable automatic publishing when using docker run -P. To publish specific ports, use -p when running the container.