So far, we have focused on how to access a container when we are local on the host system. There are use cases where local container access is all that may be required, but often, you will want to expose your containers to external users or systems. Exposing your containers to external users is not always as simple as just running a container. You will need to consider various options that Docker offers to connect your containers to the network. To avoid frustration, you should also understand how systems communicate using IP, including any limitations in regard to exposing IP ports.
In this chapter, we will cover the following topics:
- Exploring Docker networking
- Creating user-defined bridge networks
Let's get started!