ebook img

Learn Docker in a Month of Lunches PDF

466 Pages·2020·43.521 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Learn Docker in a Month of Lunches

Containers are isolated environments, but they're super efficient. One computer can run lots of containers, which all share the same OS, CPU and memory. Learn Docker in a Month of Lunches Learn Docker in a Month of Lunches ELTON STONEMAN MANNING SHELTER ISLAND For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 761 Shelter Island, NY 11964 Email: [email protected] ©2020 by Manning Publications Co. All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without the use of elemental chlorine. Acquisitions editor: Michael Stephens Development editor: Becky Whitney Technical development editor: Mike Shepard Manning Publications Co. Review editor: Aleksandar Dragosavljevic´ 20 Baldwin Road Production editors: Anthony Calcara and Lori Weidert PO Box 761 Copy editor: Andy Carroll Shelter Island, NY 11964 Proofreader: Keri Hales Technical proofreader: Yan Guo Typesetter: Dennis Dalinnik Cover designer: Leslie Haimes ISBN: 9781617297052 Printed in the United States of America I wrote this book in a barn in Gloucestershire, England. During many late nights, my fantastic wife, Nikki, kept the family running, so this book is for her— and for our fabulous children, Jackson and Eris. brief contents PART 1 UNDERSTANDING DOCKER CONTAINERS AND IMAGES. ....1 1 ■ Before you begin 3 2 ■ Understanding Docker and running Hello World 15 3 ■ Building your own Docker images 31 4 ■ Packaging applications from source code into Docker Images 45 5 ■ Sharing images with Docker Hub and other registries 61 6 ■ Using Docker volumes for persistent storage 75 PART 2 RUNNING DISTRIBUTED APPLICATIONS IN CONTAINERS...95 7 ■ Running multi-container apps with Docker Compose 97 8 ■ Supporting reliability with health checks and dependency checks 117 9 ■ Adding observability with containerized monitoring 137 10 ■ Running multiple environments with Docker Compose 161 11 ■ Building and testing applications with Docker and Docker Compose 183 vii viii BRIEF CONTENTS PART 3 RUNNING AT SCALE WITH A CONTAINER ORCHESTRATOR.........................................................205 12 ■ Understanding orchestration: Docker Swarm and Kubernetes 207 13 ■ Deploying distributed applications as stacks in Docker Swarm 230 14 ■ Automating releases with upgrades and rollbacks 250 15 ■ Configuring Docker for secure remote access and CI/CD 271 16 ■ Building Docker images that run anywhere: Linux, Windows, Intel, and Arm 295 PART 4 GETTING YOUR CONTAINERS READY FOR PRODUCTION......................................................317 17 ■ Optimizing your Docker images for size, speed, and security 319 18 ■ Application configuration management in containers 339 19 ■ Writing and managing application logs with Docker 359 20 ■ Controlling HTTP traffic to containers with a reverse proxy 381 21 ■ Asynchronous communication with a message queue 407 22 ■ Never the end 425

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.