About this chapter
Apps rarely run alone. This chapter covers how to reach a container from your browser and how to let containers communicate with one another.
Lessons from courses
- 1 Port mapping Learn Docker port mapping: use the -p host:container flag in docker run to expose a container's port and reach the app from your browser.
- 2 Connecting containers with networks Create a Docker network so containers reach each other by name - like a web app connecting to its database - using docker network create.