Networking
In Docker
Basics , Approaches and Examples
JULY 16, 2017  |  JAKIR PATEL
Agenda
Introduction and Key Concepts
Deployment Options for Containers
Layers of Networking
Docker Networking with Deployments
Interfaces and Plugins
Key Concepts
Network Namespace 
docker0 Bridge
Port Mapping 
Veth Pair 
 A Docker container needs a host
to run on. This can either be a
physical machine (e.g., a bare-
metal server in your on-premise
datacenter) or a VM either on-
prem or in the cloud.
Deployment?
Single Host Deployment 
10 to 40 Containers per host. 
Multi Host Deployment 
Layers of
Networking
Low Level Networking 
Docker Networking 
Single Host
Networking
Bridge Mode
Host Mode
None Mode
Host Mode
 docker run –d –-name nginx-1 –net=host nginx
 Bridge Mode
docker run –d –-name nginx-1 -p 10000:80 nginx
docker run –d –-name nginx-2 -p 10001:80 nginx
None Mode
No networking needed for containers 
Custom Networking as Option
Multi-host
Deployment
If single host deployment is overloaded.
Options Available 
Overlay
Flannel
Weave
Calico
Interfaces
and Plugins
Container Network Interface 
Libnetwork
JAKIR PATEL
Thank You!

Networking in docker