Docker: Up & Running: Shipping Reliable Containers in Production [2nd ed] 9781492036739, 1450071961, 2095771648, 2001383924, 7488287959, 1492036730, 9781492036746, 1492036749

Docker is rapidly changing the way organizations deploy software at scale. However, understanding how Linux containers f

236 106 3MB

English Pages 350 Year 2018

Report DMCA / Copyright

DOWNLOAD EPUB FILE

Table of contents :
Cover
Copyright
Table of Contents
Foreword
Preface
Who Should Read This Book
Why Read This Book?
Navigating This Book
Conventions Used in This Book
Using Code Examples
O'Reilly Safari
How to Contact Us
Acknowledgments
Chapter 1. Introduction
The Promise of Docker
Benefits of the Docker Workflow
What Docker Isn't
Important Terminology
Wrap-Up
Chapter 2. The Docker Landscape
Process Simplification
Broad Support and Adoption
Architecture
Client/Server Model
Network Ports and Unix Sockets
Robust Tooling
Docker Command-Line Tool
Docker Engine API
Container Networking. Getting the Most from DockerContainers Are Not Virtual Machines
Limited Isolation
Containers Are Lightweight
Toward an Immutable Infrastructure
Stateless Applications
Externalizing State
The Docker Workflow
Revision Control
Building
Testing
Packaging
Deploying
The Docker Ecosystem
Wrap-Up
Chapter 3. Installing Docker
Docker Client
Linux
macOS, Mac OS X
Microsoft Windows 10 Professional
Docker Server
systemd-Based Linux
Non-Linux VM-Based Server
Testing the Setup
Ubuntu
Fedora
Alpine Linux
Exploring the Docker Server
Wrap-Up
Chapter 4. Working with Docker Images. Anatomy of a DockerfileBuilding an Image
Troubleshooting Broken Builds
Running Your Image
Environment Variables
Custom Base Images
Storing Images
Public Registries
Private Registries
Authenticating to a Registry
Running a Private Registry
Advanced Building Techniques
Keeping Images Small
Layers Are Additive
Optimizing for the Cache
Wrap-Up
Chapter 5. Working with Docker Containers
What Are Containers?
History of Containers
Creating a Container
Basic Configuration
Storage Volumes
Resource Quotas
Starting a Container
Auto-Restarting a Container
Stopping a Container. Killing a ContainerPausing and Unpausing a Container
Cleaning Up Containers and Images
Windows Containers
Wrap-Up
Chapter 6. Exploring Docker
Printing the Docker Version
Server Information
Downloading Image Updates
Inspecting a Container
Exploring the Shell
Returning a Result
Getting Inside a Running Container
docker exec
nsenter
docker volume
Logging
docker logs
More Advanced Logging
Non-Plug-In Community Options
Monitoring Docker
Container Stats
Container Health Checks
Docker Events
cAdvisor
Prometheus Monitoring
Exploration
Wrap-Up
Chapter 7. Debugging Containers. Process OutputProcess Inspection
Controlling Processes
Network Inspection
Image History
Inspecting a Container
Filesystem Inspection
Wrap-Up
Chapter 8. Exploring Docker Compose
Configuring Docker Compose
Launching Services
Exploring RocketChat
Exercising Docker Compose
Wrap-Up
Chapter 9. The Path to Production Containers
Getting to Production
Docker's Role in Production Environments
Job Control
Resource Limits
Networking
Configuration
Packaging and Delivery
Logging
Monitoring
Scheduling
Service Discovery
Production Wrap-Up
Docker and the DevOps Pipeline.

Docker: Up & Running: Shipping Reliable Containers in Production [2nd ed]
 9781492036739, 1450071961, 2095771648, 2001383924, 7488287959, 1492036730, 9781492036746, 1492036749

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
Recommend Papers