0%

Book Description

When you start building applications with Docker, you’ll come up against two significant challenges: networking and service discovery. You can find many recipes for dealing with these tasks if you’re prepared to scrounge through a pile of blog posts.

In this short guide, author Michael Hausenblas, Developer and Cloud Advocate at Mesosphere, explains how networking and service discovery work in the Docker world, and provides a series of practical solutions for dealing with these challenges.

  • Get an overview of Docker single- and multi-host networking
  • Understand why service discovery and container orchestration (scheduling) are two sides of the same coin
  • Explore technologies for service discovery, including ZooKeeper, Consul, Airbnb’s SmartStack, and Netflix’s Eureka
  • Learn which orchestration solutions—such as Kubernetes and Apache Mesos—work best for your deployment
  • Be prepared to experiment with different technologies until decent standards emerge

Table of Contents

  1. Preface
    1. The Book
    2. You
    3. Me
    4. Acknowledgments
  2. 1. Motivation
    1. Go Cattle!
    2. Docker Networking and Service Discovery Stack
    3. Do I Need to Go “All In”?
  3. 2. Docker Networking 101
    1. Bridge Mode Networking
    2. Host Mode Networking
    3. Container Mode Networking
    4. No Networking
    5. Wrapping It Up
  4. 3. Docker Multihost Networking
    1. Overlay
    2. Flannel
    3. Weave
    4. Project Calico
    5. Open vSwitch
    6. Pipework
    7. OpenVPN
    8. Future Docker Networking
    9. Wrapping It Up
  5. 4. Containers and Service Discovery
    1. The Challenge
    2. Technologies
      1. ZooKeeper
      2. etcd
      3. Consul
      4. Pure-Play DNS-Based Solutions
      5. Airbnb’s SmartStack and Netflix’s Eureka
    3. Load Balancing
    4. Wrapping It Up
  6. 5. Containers and Orchestration
    1. What Does a Scheduler Actually Do?
    2. Vanilla Docker and Docker Swarm
      1. Ambassadors
      2. Docker Swarm
      3. Networking
      4. Service Discovery
    3. Kubernetes
      1. Networking
      2. Service Discovery
    4. Apache Mesos
      1. Networking
      2. Service Discovery
    5. Hashicorp Nomad
      1. Networking
      2. Service Discovery
    6. Which One Should I Use?
      1. A Day in the Life of a Container
      2. Community Matters
  7. A. References
    1. Networking References
    2. Service Discovery References
    3. Related and Advanced References
3.17.6.75