Search⌘ K

Networking

Explore Docker networking concepts focusing on how server software in containers listens on ports. Understand the role of the EXPOSE instruction for documentation and how to map container ports to host ports using the docker run command.

We'll cover the following...

When your image hosts server software, it listens on one or several ports. For instance, an HTTP server generally listens on the TCP port 80.

You can make this explicit using an EXPOSE instruction: ...