Book description
Build, ship, and run containers from scratch with Docker and Kubernetes be it on premise or in the cloud
Key Features
- Master Docker container setup, operation, and debugging
- Use Docker compose for managing multi-service applications
- Navigate orchestrators like Kubernetes and Docker swarmkit
- Purchase of the print or Kindle book includes a free PDF eBook
Book Description
The Ultimate Docker Container Book, 3rd edition enables you to leverage Docker containers for streamlined software development. You’ll uncover Docker fundamentals and how containers improve software supply chain efficiency and enhance security.
You’ll start by learning practical skills such as setting up Docker environments, handling stateful components, running and testing code within containers, and managing Docker images. You’ll also explore how to adapt legacy applications for containerization and understand distributed application architecture. Next, you’ll delve into Docker's networking model, software-defined networks for secure applications, and Docker compose for managing multi-service applications along with tools for log analysis and metrics. You’ll further deepen your understanding of popular orchestrators like Kubernetes and Docker swarmkit, exploring their key concepts, and deployment strategies for resilient applications. In the final sections, you’ll gain insights into deploying containerized applications on major cloud platforms, including Azure, AWS, and GCE and discover techniques for production monitoring and troubleshooting.
By the end of this book, you’ll be well-equipped to manage and scale containerized applications effectively.
What you will learn
- Understand the benefits of using containers
- Manage Docker containers effectively
- Create and manage Docker images
- Explore data volumes and environment variables
- Master distributed application architecture
- Deep dive into Docker networking
- Use Docker Compose for multi-service apps
- Deploy apps on major cloud platforms
Who this book is for
This book is for Linux professionals, system administrators, operations engineers, DevOps engineers, software architects, and developers looking to work with Docker and Kubernetes from scratch. A basic understanding of Docker containers is recommended, but no prior knowledge of Kubernetes is required. Familiarity with scripting tools such as Bash or PowerShell will be advantageous.
Table of contents
- The Ultimate Docker Container Book
- Contributors
- About the author
- About the reviewers
- Preface
- Part 1:Introduction
- Chapter 1: What Are Containers and Why Should I Use Them?
-
Chapter 2: Setting Up a Working Environment
- Technical requirements
- The Linux command shell
- PowerShell for Windows
- Installing and using a package manager
- Installing Git and cloning the code repository
- Choosing and installing a code editor
- Installing Docker Desktop on macOS or Windows
- Installing Docker Toolbox
- Enabling Kubernetes on Docker Desktop
- Installing minikube
- Installing Kind
- Summary
- Further reading
- Questions
- Answers
- Part 2:Containerization Fundamentals
-
Chapter 3: Mastering Containers
- Technical requirements
- Running the first container
- Starting, stopping, and removing containers
- Running a random trivia question container
- Listing containers
- Stopping and starting containers
- Removing containers
- Inspecting containers
- Exec into a running container
- Attaching to a running container
- Retrieving container logs
- The anatomy of containers
- Summary
- Further reading
- Questions
- Answers
- Chapter 4: Creating and Managing Container Images
- Chapter 5: Data Volumes and Configuration
- Chapter 6: Debugging Code Running in Containers
-
Chapter 7: Testing Applications Running in Containers
- Technical requirements
- Benefits of testing applications in containers
- Different types of testing
- Commonly used tools and technologies
- Best practices for setting up a testing environment
- Tips for debugging and troubleshooting issues
- Challenges and considerations when testing applications running in containers
- Case studies
- Summary
- Questions
- Answers
-
Chapter 8: Increasing Productivity with Docker Tips and Tricks
- Technical requirements
- Keeping your Docker environment clean
- Using a .dockerignore file
- Executing simple admin tasks in a container
- Limiting the resource usage of a container
- Avoiding running a container as root
- Running Docker from within Docker
- Optimizing your build process
- Scanning for vulnerabilities and secrets
- Running your development environment in a container
- Summary
- Questions
- Answers
- Part 3:Orchestration Fundamentals
- Chapter 9: Learning about Distributed Application Architecture
- Chapter 10: Using Single-Host Networking
-
Chapter 11: Managing Containers with Docker Compose
- Technical requirements
- Demystifying declarative versus imperative orchestration of containers
- Running a multi-service app
- Building images with Docker Compose
- Running an application with Docker Compose
- Scaling a service
- Building and pushing an application
- Using Docker Compose overrides
- Summary
- Further reading
- Questions
- Answers
- Chapter 12: Shipping Logs and Monitoring Containers
- Chapter 13: Introducing Container Orchestration
- Chapter 14: Introducing Docker Swarm
- Chapter 15: Deploying and Running a Distributed Application on Docker Swarm
- Part 4:Docker, Kubernetes, and the Cloud
-
Chapter 16: Introducing Kubernetes
- Technical requirements
- Understanding Kubernetes architecture
- Kubernetes master nodes
- Cluster nodes
- Introduction to Play with Kubernetes
- Kubernetes support in Docker Desktop
- Introduction to pods
- Kubernetes ReplicaSets
- Kubernetes Deployments
- Kubernetes Services
- Context-based routing
- Comparing SwarmKit with Kubernetes
- Summary
- Further reading
- Questions
- Answers
- Chapter 17: Deploying, Updating, and Securing an Application with Kubernetes
- Chapter 18: Running a Containerized Application in the Cloud
- Chapter 19: Monitoring and Troubleshooting an Application Running in Production
- Index
- Other Books You May Enjoy
Product information
- Title: The Ultimate Docker Container Book - Third Edition
- Author(s):
- Release date: August 2023
- Publisher(s): Packt Publishing
- ISBN: 9781804613986
You might also like
book
Docker: Up & Running, 3rd Edition
Docker and Linux containers have fundamentally changed the way that organizations develop, deliver, and run software …
book
Docker Deep Dive - Second Edition
Start from scratch and develop the essential skills needed to create, deploy, and manage cloud-native applications …
book
Kubernetes: Up and Running, 3rd Edition
This third edition comes with a dedicated playlist of interactive Katacoda labs mapped to each section …
video
The Complete Practical Docker Guide
Docker is a software framework for building, running, and managing containers on servers and the cloud. …