Docker Networking 前言

前言

本书帮助读着学习,创建,部署容器网络以及提供一些容器网络的管理部署。Docker是一个可以提供轻量便携式部署以及生产级别的环境的Linux容器引擎,。这些环境可以逐步更新。Docker通过一些linux限制策略实现这些功能,比如:Cgroups控制以及Linux Namespace隔离,以及包含基础文件系统的镜像。

Docker提供网络原生,允许管理员给不同的应用指定不同的容器网络,在各自的网络中连接自己的组件,然后分发这些应用在服务器集群中,最后调度这些应用而不管这些应用是运行在物理机上或者虚拟机上。

这本书关注的是最新的容器网络技术并且提供深入的内容解释以及具体的步骤的细节。

这本书的主要内容

章节1,容器网络初级教程,解释了容器网络的基础组件,这些组件是从简单的耦合Docker抽象以及强大的容器组件抽象而来。比如:linux 网桥,Open vSwitch等等。这个章节也介绍了通过不同的模型来创建Docker 容器。在默认情况下,端口映射帮助我们通过使用 iptables NAT 规则,允许流量从宿主机到达容器。本章节稍后介绍了容器的基本连接以及讨论下一代容器网络技术即 libnetwork。

章节2,容器网络的内部组件,讨论了容器的内部网络架构。我们架构学到有关Docker的IPv4,IPv6以及DNS配置的知识。本章节的后部分介绍有关Docker桥接和单节点以及跨节点的容器通信知识。这个章节也阐述了overlay tunneling协议以及容器网络的不同的通信方式,比如:OVS网络,Fannel网络,以及Ware网络。 

章节3,构建你的第一个网络,展示Docker容器如何使用不同的网络,比如:Weave网络,OVS网络和Flannel网络,进行跨主机通信。PipeWorks使用传统的Linux网桥,Weave创建一个虚拟网络,OVS网络使用GRE隧道技术,并且Flannel提供一个单独的子网来实现容器的跨主机通信。一些通信方案,比如:Pipework是传统的方案将会在一段时间被淘汰。然而一些方案是为了特定操作系统的环境中使用的,比如:适用于CoreOS系统的Flannel网络方案。在本章节中网络方案的基本的比较也会涉及。

章节4,Docker集群中的网络通信,深入解释了多种框架下的Docker网络,比如:原生的Docker Swarm,使用libnetwork网络或者开箱即用的overlay网络,Swarm提供了跨主机的网络通信特性。另一方面,Kubernetes有不同的Docker的方案,在Kubernetes集群中,每个pod有不同的IP地址并且pod之间通过服务实现通信。通过Open vSwitch或者IP转发高级路由规则,Kubernetes网络能被增强用以提高跨主机的不同子网之间的pod之间的连通性同时暴露端口给集群之外的服务器。在Mesosphere平台上,我们能了解到Marathon作为部署容器的网络的后端。在Mesosphere的DCOS(数据中心操作系统)平台,将完整部署机器堆栈作为一个机器为了在部署的容器服务之间提供一个丰富的网络体验。

 

 

 

 

 

Key Features Set up, configure, and monitor a virtual network of containers using a bridge network and virtual switches Master the skill of networking Docker Containers using frameworks such as Kubernetes, Docker Swarm, and Mesosphere Acquire hands-on experience through practical examples of Docker networking spanning multiple containers, over multiple hosts, clubbed with various frameworks Book Description Docker is a Linux container implementation that enables the creation of light weight portable development and production environments. These environments can be updated incrementally. Docker achieves this by leveraging containment principles like cgroups and Linux namespaces along with Overlay filesystem based portable images. Docker provides the networking primitives that allow administrators to specify how different containers network with each application and connect each of its components, then distribute them across a large number of servers and ensure coordination between them irrespective of the host or VM they are running in. This book will show you how to create, deploy, and manage a virtual network for connecting containers spanning single or multiple hosts. What you will learn Get to know the basics of networking and see how Docker networking works Expose the strengths and weaknesses of the current Docker network implementation and third party landscape Understand Docker networking spanning multiple containers over multiple hosts through practical examples Observe the pitfalls of Docker networking and how to overcome them Learn how Docker networking works for Docker Swarm and Kubernetes Configure Networking using Docker's container network model (CNM) Explore OpenvSwitch to connect contain About the Author Rajdeep Dua has over 16 years of experience in distributed systems. He has worked in R&D and Developer Relation roles at Microsoft, Google, VMware, and Salesforce.com. He has exposure to multiple cloud platforms like Google App Engine, Heroku, Forc
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值