<div>Master every aspect of orchestrating/managing Docker including creating a Swarm, creating services, using mounts, scheduling, scaling, resource management, rolling updates, load balancing, high availability, logging and monitoring, using multiple zones, and networking. This book also discusses
Docker Management Design Patterns Swarm Mode on Amazon Web Services
โ Scribed by Vohra, Deepak
- Publisher
- Apress
- Year
- 2017
- Tongue
- English
- Leaves
- 329
- Edition
- 1st edition
- Category
- Library
No coin nor oath required. For personal study only.
โฆ Synopsis
Master every aspect of orchestrating/managing Docker including creating a Swarm, creating services, using mounts, scheduling, scaling, resource management, rolling updates, load balancing, high availability, logging and monitoring, using multiple zones, and networking. This book also discusses the managed services for Docker Swarm: Docker for AWS and Docker Cloud Swarm mode.
Docker Management Design Patternsexplains how to use Docker Swarm mode with Docker Engine to create a distributed Docker container cluster and how to scale a cluster of containers, schedule containers on specific nodes, and mount a volume. This book is based on the latest version of Docker (17.0x).
You will learn to provision a Swarm on production-ready AWS EC2 nodes, and to link Docker Cloud to Docker for AWS to provision a new Swarm or connect to an existing Swarm. Finally, you will learn to deploy a Docker Stack on Docker Swarm with Docker Compose.
What You'll Learn
Apply Docker management design patterns
Use Docker Swarm mode and other new features
Create and scale a Docker service
Use mounts including volumes
Configure scheduling, load balancing, high availability, logging and monitoring, rolling updates, resource management, and networking
Use Docker for AWS managed services including a multi-zone Swarm
Build Docker Cloud managed services in Swarm mode
Who This Book Is For
Docker admins, Docker application developers, and container as a service (CAAS) developers. Some prerequisite knowledge of Linux and Docker is required. ApressPro Dockeris recommended as a companion to this book.
โฆ Table of Contents
Contents at a Glance......Page 4
Contents......Page 5
About the Author......Page 13
About the Technical Reviewers......Page 14
Introduction......Page 15
Setting the Environment......Page 17
Running a Docker Application......Page 19
Summary......Page 23
The Problem......Page 24
Nodes......Page 25
Manager Node and Raft Consensus......Page 26
Quorum......Page 27
Initializing the Docker Swarm Mode......Page 29
Joining Nodes to the Swarm......Page 33
Testing the Swarm......Page 35
Promoting a Worker Node to Manager......Page 39
Making a Worker Node Leave the Swarm......Page 40
Making a Manager Node Leave the Swarm......Page 41
Modifying Node Availability......Page 43
Summary......Page 45
The Problem......Page 46
The Solution......Page 47
Setting the Environment......Page 48
Creating a AWS CloudFormation Stack for Docker Swarm......Page 49
Using the Swarm......Page 64
Deleting a Swarm......Page 66
Summary......Page 68
The Solution......Page 69
Setting the Environment......Page 71
The docker service Commands......Page 73
Creating a Service......Page 74
Listing the Tasks of a Service......Page 75
Invoking a Hello World Service Task on the Command Line......Page 76
Getting Detailed Information About a Service......Page 77
Invoking the Hello World Service in a Browser......Page 79
Creating a Service for a MySQL Database......Page 81
Listing Service Tasks......Page 82
Accessing a MySQL Database in a Docker Container......Page 84
Updating a Service......Page 87
Updating the Replicas......Page 88
Updating the Docker Image Tag......Page 89
Updating the Placement Constraints......Page 93
Updating Environment Variables......Page 94
Updating the Docker Image......Page 95
Updating Resources Settings......Page 96
Creating a Global Service......Page 97
Summary......Page 98
The Problem......Page 99
The Solution......Page 100
Creating a Replicated Service......Page 101
Scaling Up a Service......Page 102
Scaling Down a Service......Page 105
Global Services Cannot Be Scaled......Page 106
Scaling Multiple Services Using the Same Command......Page 107
Service Tasks Replacement on a Node Leaving the Swarm......Page 109
Summary......Page 110
Volume Mounts......Page 111
Bind Mounts......Page 112
Setting the Environment......Page 113
Creating a Named Volume......Page 114
Using a Volume Mount......Page 116
Creating and Using a Bind Mount......Page 126
Summary......Page 128
The Problem......Page 129
The Solution......Page 130
Setting the Environment......Page 132
Creating a Service Without Resource Specification......Page 133
Setting Resource Limits......Page 134
Scaling and Resources......Page 135
Reserved Resources Must Not Be More Than Resource Limits......Page 136
Rolling Update to Modify Resource Limits and Reserves......Page 138
Resource Usage and Node Capacity......Page 139
Scaling Up the Stack......Page 141
Summary......Page 144
The Problem......Page 145
The Solution......Page 146
Setting the Environment......Page 149
Creating and Scheduling a Service: The Spread Scheduling......Page 150
Desired State Reconciliation......Page 152
Scheduling Tasks Limited by Node Resource Capacity......Page 155
Adding Service Scheduling Constraints......Page 159
Scheduling on a Specific Node......Page 160
Adding Multiple Scheduling Constraints......Page 162
Adding Node Labels for Scheduling......Page 164
Adding, Updating, and Removing Service Scheduling Constraints......Page 165
Spread Scheduling and Global Services......Page 167
Summary......Page 168
The Solution......Page 169
Creating a Service with a Rolling Update Policy......Page 171
Rolling Update to Increase the Number of Replicas......Page 172
Rolling Update to a Different Image Tag......Page 175
Rolling Update to Add and Remove Environment Variables......Page 176
Rolling Update to Set CPU and Memory Limits and Reserve......Page 178
Rolling Update to a Different Image......Page 181
Rolling Restart......Page 185
Rolling Update to Add and Remove Mounts......Page 186
Rolling Update Failure Action......Page 187
Roll Back to Previous Specification......Page 189
Rolling Update on a Global Service......Page 190
Summary......Page 192
The Problem......Page 193
The Ingress Network......Page 194
The Bridge Network......Page 195
Setting the Environment......Page 196
Networking in Swarm Mode......Page 197
Using the Default Bridge Network to Create a Service......Page 200
Creating a Service in the Ingress Network......Page 201
Creating a Custom Overlay Network......Page 205
Using a Custom Overlay Network to Create a Service......Page 208
Creating an Internal Overlay Network......Page 209
Deleting a Network......Page 212
Summary......Page 213
The Solution......Page 214
Setting the Environment......Page 215
Creating a SPM Application......Page 216
Creating a Logsene Application......Page 218
Connecting the SPM and Logsene Apps......Page 221
Deploying the Sematext Docker Agent as a Service......Page 222
Creating a MySQL Database Service on a Docker Swarm......Page 225
Monitoring the Docker Swarm Metrics......Page 226
Getting Docker Swarm Logs in Logsene......Page 227
Summary......Page 230
The Problem......Page 231
The Solution......Page 232
Setting the Environment......Page 233
Creating a Hello World Service......Page 234
Invoking the Hello World Service......Page 236
Creating an External Elastic Load Balancer......Page 239
Load Balancing in Docker for AWS......Page 246
Summary......Page 251
The Problem......Page 252
The Solution......Page 253
Creating Multiple Docker Swarms......Page 254
Deploying a Docker Swarm Service......Page 257
Creating an Amazon Route 53......Page 262
Creating a Hosted Zone......Page 263
Configuring Name Servers......Page 265
Creating Resource Record Sets......Page 267
Testing High Availability......Page 274
Deleting a Hosted Zone......Page 277
Summary......Page 280
The Solution......Page 281
Creating an IAM Role......Page 282
Creating a Docker Swarm in Docker Cloud......Page 290
Connecting to the Docker Swarm from a Docker Host......Page 299
Connecting to the Docker Swarm from a Swarm Manager......Page 302
Bringing a Swarm into Docker Cloud......Page 304
Summary......Page 306
The Solution......Page 307
Setting the Environment......Page 309
Configuring a Service Stack......Page 313
Creating a Stack......Page 314
Listing Stacks......Page 315
Listing Services......Page 316
Listing Docker Containers......Page 317
Using the Service Stack......Page 318
Removing a Stack......Page 324
Summary......Page 325
Index......Page 326
๐ SIMILAR VOLUMES
<p>Master every aspect of orchestrating/managing Docker including creating a Swarm, creating services, using mounts, scheduling, scaling, resource management, rolling updates, load balancing, high availability, logging and monitoring, using multiple zones, and networking. This book also discusses th
Master every aspect of orchestrating/managing Docker including creating a Swarm, creating services, using mounts, scheduling, scaling, resource management, rolling updates, load balancing, high availability, logging and monitoring, using multiple zones, and networking. This book also discusses the m
<p><span>Run Docker on AWS and build real-world, secure, and scalable container platforms on cloud</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Configure Docker for the ECS environment</span></span></li><li><span><span>Integrate Docker with different AWS tools</span></span></li><l
Container and Docker fundamentals -- Building applications using Docker -- Getting started with AWS -- Introduction to ECS -- Publishing Docker images using ECR -- Building custom ECS container instances -- Creating ECS clusters -- Deploying applications using ECS -- Managing secrets -- Isolating ne
<p><span>Run Docker on AWS and build real-world, secure, and scalable container platforms on cloud</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Configure Docker for the ECS environment</span></span></li><li><span><span>Integrate Docker with different AWS tools</span></span></li><l