Current lesson | Lesson 3/12

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

Docker Lab 0%

Chapters

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.
Instructor
Up next Docker Lab (4/12): EXPOSE, Port Mapping and the -P Flag (Part 2)