Docker: Up & Running: Shipping Reliable Containers in Production
Book information
Description
Docker is rapidly changing the way organizations deploy software at scale. However, understanding how Linux containers fit into your workflow—and getting the integration details right—is not a trivial task. With the updated edition of this practical guide, you’ll learn how to use Docker to package your applications with all of their dependencies and then test, ship, scale, and support your containers in production. This edition includes significant updates to the examples and explanations that reflect the substantial changes that have occurred over the past couple of years. Sean Kane and Karl Matthias have added a complete chapter on Docker Compose, deeper coverage of Docker Swarm mode, introductions to both Kubernetes and AWS Fargate, examples on how to optimize your Docker images, and much more. - Learn how Docker simplifies dependency management and deployment workflow for your applications - Start working with Docker images, containers, and command line tools - Use practical techniques to deploy and test Docker containers in production - Debug containers by understanding their composition and internal processes - Deploy production containers at scale inside your data center or cloud environment - Explore advanced Docker topics, including deployment tools, networking, orchestration, security, and configuration 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 Docker ________Containers 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 Dockerfile ____Building 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 Container ____Pausing 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 Output ____Process 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 ________Quick Overview ________Outside Dependencies ____Wrap-Up Chapter 10. Docker at Scale ____Centurion ____Docker Swarm Mode ____Amazon ECS and Fargate ________Core AWS Setup ________IAM Role Setup ________AWS CLI Setup ________Container Instances ________Tasks ________Testing the Task ________Stopping the Task ____Kubernetes ________What Is Minikube? ________Installing Minikube ________Running Kubernetes ________Kubernetes Dashboard ________Kubernetes Containers and Pods ________Let’s Deploy Something ________Deploying a Realistic Stack ________Service Definition ________PersistentVolumeClaim Definition ________Deployment Definition ________Deploying the Application ________Scaling Up ________kubectl API ____Wrap-Up Chapter 11. Advanced Topics ____Containers in Detail ________cgroups ________Namespaces ____Security ________UID 0 ________Privileged Containers ________Secure Computing Mode ________SElinux and AppArmor ________The Docker Daemon ____Advanced Configuration ________Networking ____Storage ____The Structure of Docker ____Swapping Runtimes ________gVisor ____Wrap-Up Chapter 12. Container Platform Design ____The Twelve-Factor App ________Codebase ________Dependencies ________Config ________Backing Services ________Build, Release, Run ________Processes ________Port Binding ________Concurrency ________Disposability ________Development/Production Parity ________Logs ________Admin Processes ________Twelve-Factor Wrap-Up ____The Reactive Manifesto ________Responsive ________Resilient ________Elastic ________Message-Driven ____Wrap-Up Chapter 13. Conclusion ____The Challenges Docker Addresses ____The Docker Workflow ____Minimizing Deployment Artifacts ____Optimizing Storage and Retrieval ____The Payoff ____The Final Word Index About the Authors Colophon
Similar books
Docker: Up & Running: Shipping Reliable Containers in Production
2018 · PDF
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF