Chapter 4. Network and Data Management for Containers
In this chapter, we will cover the following recipes:
- Accessing containers from outside
- Managing data in containers
- Linking two or more containers
- Developing a LAMP application by linking containers
- Networking of multihost container with Flannel
- Assigning IPv6 addresses to containers
Introduction
Until now, we have worked with a single container and accessed it locally. But as we move to more real world use cases, we will need to access the container from the outside world, share external storage within the container, communicate with containers running on other hosts, and so on. In this chapter, we'll see how to fulfill some of those requirements. Let's start by understanding Docker's default networking setup and then go to advanced use cases.
When the Docker daemon starts, it creates a virtual Ethernet bridge with the name docker0
. For example, we will see the following with the ip addr
command on the system that runs...