Docker Lab (3/12): Why EXPOSE Doesn't Publish the Port (Part 1)

Giovanni Pace

Description

Does EXPOSE in a Dockerfile actually publish the port? In the first part of this lab we see why EXPOSE only documents the image's port and doesn't create the host-to-container mapping: that's the job of the -p flag.