21 Days of Docker-Day 19 -Docker Networking Deep Dive
2 min readOct 27, 2019
On Day 9, Day 10 and Day 11 I discussed Docker Networking, let go one level down and dig deeper into it.
What is Container Networking Model(CNM) and Libnetwork?
- The CNM is an open-source container networking specification that contributed to the community by Docker Inc.
- Docker’s libnetwork is a library that provides an implementation for CNM.
- However, third-party plugins can be used to replace the built-in Docker driver.
- Libnetwork is cross-platform and open-source.
- CNM has interfaces for both IPAM plugins and network plugin. The IPAM plugin APIs can be used to create/delete address pools and allocate/deallocate container IP addresses. The network plugin APIs are used to create/delete networks and add/remove containers from networks.
Docker Networking on Linux
- Docker networking uses the Linux Kernel extensive networking capabilities(eg: TCP/IP stack, VXLAN, DNS)
- Docker networking utilizes many Linux Kernel networking features(network namespaces, bridges, iptables, veth pairs…)
- Linux Bridges: L2 virtual switches implemented in the kernel
- Network namespaces: Used for isolating container network stacks
- veth pairs: Connecting containers to container networks
- iptables: Used for port mapping, load balancing, network isolation
To read the complete post
Please follow me with my Journey
- Website:http://100daysofdevops.com/
- Twitter:@100daysofdevops OR @lakhera2015
- Facebook:https://www.facebook.com/groups/795382630808645/
- Medium:https://medium.com/@devopslearning
- GitHub:https://github.com/100daysofdevops/21_Days_of_Docker
This time to make learning more interactive, I am adding
- Slack
- Meetup
Please feel free to join this group.
Slack:
Meetup Group
If you are in the bay area, please join this meetup group https://www.meetup.com/100daysofdevops/