BPB Online LLP
Cracking Containers with Docker and Kubernetes
Nisarg Vasavada, Dhwani Sametriya
Cracking Containers with Docker and Kubernetes
US$ 19.95
The publisher has enabled DRM protection, which means that you need to use the BookFusion iOS, Android or Web app to read this eBook. This eBook cannot be used outside of the BookFusion platform.
Description
Contents
Reviews

A book that will help you become the Mozart of Microservices

Key Features
● All codes tested on the latest software versions with visual illustrations.
● Covers bleeding-edge DevOps skills to build a future-proof job profile.
● Includes expert advice, industry insights, and logical analogies to craft a technical narrative.

Description
“Cracking Containers with Docker and Kubernetes” aims to be a comprehensive guide for learning and referencing all of the essential topics related to creating, managing, and running containers with Docker and Kubernetes. Students and professionals working on Containerized web applications can use this book to lay strong conceptual foundations and sharpen their skills.

The first few chapters provide an overall picture of resource virtualization in computing and demonstrate the potential of containers. The intermediate chapters get to extensive detail about Docker and Kubernetes. You will gain in-demand skills such as Docker and Kubernetes CLI, as well as how to write Dockerfiles, Compose files, and Kubernetes YAML Manifests. Topics like Networking, Storage, Access Control, and Security are discussed with real-world implications. The final chapters move Kubernetes and Containers to the cloud while expanding their ecosystem with tools for Serverless deployment, logging and monitoring, CI/CD, and more for a highly available production-ready setup.

After reading this book you will be able to plan your application’s migration to containers, prepare for Docker and Kubernetes Certifications, or apply for six digit DevOps jobs.

What you will learn
● Learn to create, manage and orchestrate Containers using Docker and Kubernetes.
● Practice writing Dockerfiles, Compose Files and Kubernetes YAML Manifests.
● Perform container networking, storage, authorization, security, and scaling in a production environment.
● Explore shipping, CI/CD, Service Mesh, Logging & Monitoring in detail.
● Get the Cracking Containers with Docker and Kubernetes know-how of hosted and Serverless Kubernetes on Cloud.

Who this book is for
This book is intended for students, enthusiasts, and professionals in Software Development, DevOps, and Cloud Computing who want to put their career progress on a pedestal by reducing the operational and scaling costs of their web applications and optimizing their IT infrastructure utilization.

Table of Contents
1. Prologue to the Containers
2. Hello Containers!
3. Introduction to Docker
4. Writing Dockerfiles
5. Gearing up the toolbox!
6. Connectivity and Storage
7. Multi Container Applications with Docker Compose
8. Container Orchestration with Docker Swarm
9. Introduction to Kubernetes
10. Workload Orchestration with Kubernetes
11. Networking and Storage with Kubernetes
12. Advanced Orchestration with Kubernetes
13. Hosted Kubernetes on Cloud
14. Containers in Production with GKE
15. Serverless Containers
16. The Checkpoint

Language
English
ISBN
9789391030797
Cover Page
Title Page
Copyright Page
Dedication Page
About the Authors
About the Reviewers
Acknowledgements
Preface
Errata
Table of Contents
1. Prologue to the Containers
Introduction
Structure
Objective
The web applications
Agile and DevOps
Microservices
Conclusion
2. Hello Containers!
Introduction
Structure
Objective
Virtualization
Virtual Machines and Hypervisors
Types of Hypervisors
Containers
Road to Containers
DIY: running a Container on Linux
Step 1: Prepare the system
Step 2: Obtaining the Container
Step 3: Setup the cgroup
Step 4: Run the Container
Basic definition of Containers
Docker: A Container Runtime Environment
Virtual Machines or Containers?
Conclusion
Multiple choice questions
Questions
3. Introduction to Docker
Introduction
Structure
Objective
Docker: A deeper look
Docker architecture
Docker Client
Docker Host
The Registries
Installing Docker on Linux
Step 1: Setting up repository
Step 2: Installing components
Step 3: Are we good to go?
Step 4: Improvement of quality of life
Installing Docker Desktop on Windows
Step 1: Downloading the setup
Step 2: A few clicks
Step 3: Testing the installation
Installing Docker Desktop on Mac
Conclusion
Multiple choice questions
Questions
4. Writing Dockerfiles
Introduction
Structure
Objective
Let us explore Docker Hub!
Introduction to Dockerfiles and its instructions
FROM
ARG
COPY
ADD
RUN
CMD
ENTRYPOINT
WORKDIR
STOPSIGNAL
USER
LABEL
ENV
EXPOSE
Writing your first Dockerfile
Building Dockerfile with HEALTHCHECK and Context
Setting triggers with ONBUILD
Your Docker Image on Docker Hub
Conclusion
Multiple choice questions
Questions
5. Gearing-up the Toolbox!
Introduction
Structure
Objective
Introduction to Docker Command Line
docker version
Working with docker image commands
docker build
docker images/ docker image ls
docker history
docker search
docker pull
docker tag
docker push
docker inspect
Sharing the Docker Image
Docker Image clean-up commands
The container life-cycle
Working with Docker Container commands
docker rename
docker exec
docker attach
docker commit
docker stats
docker wait
docker diff
docker inspect container
Sharing files with containers using docker cp
Miscellaneous Docker commands
Conclusion
Multiple choice questions
6. Connectivity and Storage
Introduction
Structure
Objective
Container Networking Model
Docker Networks and their types
Bridge network
Host network
Macvlan networks
Overlay network
Storage options with Docker
Volumes
Bind mounts
Tmpfs
Conclusion
Multiple choice questions
Questions
7. Multi-Container Applications with Docker Compose
Introduction
Structure
Objective
Prominence of multiple containers
Hello, Docker Compose!
First Compose file
Multi-container Compose Service (Finally!)
Conclusion
Multiple choice questions
8. Container Orchestration with Docker Swarm
Introduction
Structure
Objective
Facing the inevitable - the orchestration
Understanding Docker Swarm
Getting started with Docker Swarm
Working with Docker Swarm
Understanding networking in Docker Swarm
Container orchestration
Updating services
Node management
Reinitializing the cluster
Back-up and recovery of the cluster
Locking the Swarm cluster
Working with Docker Stack
Cleaning up Docker Swarm
Conclusion
Multiple choice questions
Questions
9. Introduction to Kubernetes
Introduction
Structure
Objective
The MVP of your skillset
Choosing between K8s and Docker Swarm
Kubernetes architecture
Setting up the K8s cluster
K8s operations: the concept of pods
Namespaces
Conclusion
Multiple choice questions
Questions
10. Workload Orchestration with Kubernetes
Introduction
Structure
Objective
Playing with namespaces
Labels and selectors
K8s wheel of objects
Replicasets
Deployments
Jobs and Cron Jobs
Daemonset
Back to pods (liveness and readiness probes, resource limits)
Init Containers
Conclusion
Multiple choice questions
Questions
11. Networking and Storage with Kubernetes
Introduction
Structure
Objective
Understanding networking in a K8s cluster
Types of Kubernetes services
Writing your first service
Exposing the service externally
Understanding storage in Kubernetes
Types of storage objects in K8s
Working with Kubernetes storage
Persisting data after container crash using emptyDir
Supplying sensitive information using secrets
Working with ConfigMaps
Conclusion
Multiple choice questions
Questions
12. Advanced Orchestration with Kubernetes
Introduction
Structure
Objective
Advanced container orchestration
Kubernetes authorization
Working with Kubernetes authorization
Establishing Kubernetes cluster security
Pod priority classes
Controlling pod scheduling
Conclusion
Multiple choice questions
Questions
13. Managed Kubernetes on Cloud
Introduction
Structure
Objective
Managed Kubernetes on Cloud
GKE: architecture and setup
Deploying Kubernetes workloads on GKE
Understanding and working with StatefulSet
Working with the Load Balancer service
Working with the Ingress
Persistent Volume
Conclusion
Multiple choice questions
Questions
14. Containers in Production with GKE
Introduction
Structure
Objective
Kubernetes in production environments
High availability cluster in GKE
Logging with GKE
Logs dashboard
Logs Router
Monitoring in GKE
Dashboards
Services
Metrics explorer
Alerting policy
Uptime check
Groups
Prometheus
Installing and configuring Prometheus on GKE
Understanding and working with Service Mesh
Bookinfo Application and Istio
Helm
Continuous Delivery using Spinnaker on GKE
Sample application on Spinnaker
The bling–bling of billing
Conclusion
Multiple choice questions
Questions
15. Serverless Containers
Introduction
Structure
Objective
Introducing Serverless Kubernetes
Getting started with Cloud Run
Hosting your first Serverless Container
Conclusion
Multiple choice questions
16. The Checkpoint
The journey…
So, what next?
Index
The book hasn't received reviews yet.
You May Also Like
Docker Demystified
$19.95
Saibal Ghosh
Docker Demystified
Hands-on DevOps with Linux
$19.95
Alisson Machado de Menezes
Hands-on DevOps with Linux
DevOps and Containers Security
$19.95
Jose Manuel Ortega Candel
DevOps and Containers Security
Building Modern Web Applications With Jakarta EE, NoSQL Databases and Microservices
$19.95
Aristides Villarreal Bravo, Geovanny Mendoza González, Otávio Gonçalves de Santana
Building Modern Web Applications With Jakarta EE, NoSQL Databases and Microservices
Hands-on Pipeline as Code with Jenkins
$19.95
Ankita Patil, Mitesh Soni
Hands-on Pipeline as Code with Jenkins