Leanpub Header

Skip to main content

Docker & Kubernetes

A Beginner's HandsOn Guide

Docker & Kubernetes
This book is 100% completeLast updated on 2026-09-17

Dive into Docker & Kubernetes—no prior experience needed!

From building your first container to deploying scalable applications, Docker & Kubernetes: A Beginner's Practical Guide gives you hands-on, ready-to-use commands to master containerization and orchestration. Start small, think big, and deploy like a pro!"

Minimum price

$14.99

$19.99

You pay

Author earns

$

Also available for 1 book credit with a Reader Membership

PDF
About

About

About the Book

Unlock the power of containerization and orchestration with this practical, step-by-step guide designed for beginners. Docker & Kubernetes: A Beginner's Practical Guide demystifies the core concepts of Docker and Kubernetes through ready-to-use commands, configurations, and real-world examples.

Start by building and deploying your first web applications with Tomcat and Nginx, then dive into Docker image maintenance, multi-container setups with Docker Compose, and application-specific Dockerfiles for Java, .NET Core, and Python. As you progress, explore Kubernetes fundamentals, including context management, sidecar patterns, and deploying custom containers to Kubernetes clusters.

Whether you're a developer, DevOps enthusiast, or IT professional, this guide equips you with the essential skills to containerize applications, orchestrate deployments, and streamline workflows—all while avoiding common pitfalls. By the end, you’ll confidently deploy, scale, and manage applications in containerized environments.

Key Highlights:
Hands-on labs with Tomcat, Nginx, and custom applications
Docker Compose for multi-container workflows
Kubernetes deployments, pods, and services
Multi-stage Docker builds for optimized images
Troubleshooting tips and best practices

Perfect for:

  • Beginners eager to learn Docker and Kubernetes
  • Developers transitioning to cloud-native technologies
  • Teams adopting containerization for scalable applications

Your journey to mastering containers starts here!

Why This Works:
  1. Clarity & Engagement: Uses active language and bullet points for readability.
  2. Audience-Focused: Explicitly targets beginners and practitioners.
  3. Action-Oriented: Highlights practical outcomes (e.g., "deploy, scale, and manage").
  4. SEO-Friendly: Includes keywords like containerization, orchestration, Docker Compose, and Kubernetes deployments.

Share this book

Author

About the Author

Sudhanshu Jaiswal

DevOps Visionary | Cloud Architect | Automation Specialist.

I simplify complex infrastructure with Kubernetes, IaC, and robust CI/CD. Proficient in GCP/AWS and a pioneer in n8n workflow automation. Open-Source Advocate and a seasoned engineer dedicated to building resilient, scalable systems.

During my leisure time , I'm writing Hindi poetry or supporting my wife's @deepasoni6261's cooking youtube channel.

Contents

Table of Contents

Table of Contents - Docker & Kubernetes: A Beginner's Practical Guide

Table of Contents

  • Welcome
    • A Hands-On Introduction to Containerization and Orchestration
  • Chapter 1: Getting Started with Tomcat
    • Creating Your First Web Application
    • Your Custom HTML Page
    • Building Your Tomcat Container
    • Working with Your Tomcat Container
  • Chapter 2: Working with Nginx
    • Default Nginx Setup
    • Custom Nginx with Your Content
    • Managing Your Nginx Container
  • Chapter 3: Docker Image Maintenance
    • Cleaning Up Unused Images
  • Chapter 4: Docker Compose Basics
    • Simple Multi-Container Setup
    • Docker Compose with Application Deployment
    • Managing Docker Compose
  • Chapter 5: Application-Specific Dockerfiles
    • Java Application (Spring Boot/Maven)
    • .NET Core Application
    • Python Application
  • Chapter 6: Introduction to Kubernetes
    • Understanding Kubernetes Context
    • Kubernetes Sidecar Pattern
    • Working with Your Sidecar Pod
  • Chapter 7: Deploying Custom Nginx to Kubernetes
    • Preparing Your Image in Minikube
    • Pushing to Docker Hub
    • Deployment YAML Approach
    • Deploying with YAML
  • Chapter 8: Deploying Custom Tomcat to Kubernetes
    • Building and Deploying
  • Chapter 9: Quick Reference Commands
    • Running and Exposing Pods
    • Proper Deployment Workflow
    • Docker Quick Commands
  • Conclusion
    • Next Steps

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub