Docker Deep Dive - Second Edition

Book description

Start from scratch and develop the essential skills needed to create, deploy, and manage cloud-native applications using Docker with the latest edition of Docker Deep Dive

Key Features

  • Get a solid understanding of Docker and containers
  • Overcome common problems while containerizing an application
  • Master Docker commands needed for creating, deploying, and running applications

Book Description

Most applications, even the funky cloud-native microservices ones, need high-performance, production-grade infrastructure to run on. Having impeccable knowledge of Docker will help you thrive in the modern cloud-first world. With this book, you will gain the skills you need in order to work with Docker and its containers.

The book begins with an introduction to containers and explains their functionality and application in the real world. You will then get an overview of VMware, Kubernetes, and Docker and learn to install Docker on Windows, Mac, and Linux. Once you have understood the Ops and Dev perspective of Docker, you will be able to see the big picture and understand what Docker exactly does. The book then turns its attention to the more technical aspects, guiding you through practical exercises covering Docker engine, Docker images, and Docker containers. You will learn techniques for containerizing an app, deploying apps with Docker Compose, and managing cloud-native applications with Swarm. You will also build Docker networks and Docker overlay networks and handle applications that write persistent data. Finally, you will deploy apps with Docker stacks and secure your Docker environment.

By the end of this book, you will be well-versed in Docker and containers and have developed the skills to create, deploy, and run applications on the cloud.

What you will learn

  • Become familiar with the applications of Docker and containers
  • Discover how to pull images into Docker host’s local registry
  • Find out how to containerize an app with new example apps
  • Cover multi-platform builds to test Docker overlay network in the swarm mode
  • Use Docker Compose to deploy and manage multi-container applications
  • Share sensitive data with containers and Swarm services securely

Who this book is for

Whether you are a beginner or an experienced developer looking to utilize Docker to develop and operate cloud-native microservices apps, this book is for you. Anyone who wants to learn Docker orchestration, networking, imaging, and security will also find it useful. No prior knowledge of Docker is necessary.

Table of contents

  1. Part 1: The big picture stuff
    1. 1: Containers from 30,000 feet
      1. The bad old days
      2. Hello VMware!
      3. VMwarts
      4. Hello Containers!
      5. Linux containers
      6. Hello Docker!
      7. Docker and Windows
      8. Windows containers vs Linux containers
      9. What about Mac containers?
      10. What about Kubernetes
      11. Chapter Summary
    2. 2: Docker
      1. Docker - The TLDR
      2. Docker, Inc.
      3. The Docker technology
      4. The Open Container Initiative (OCI)
      5. Chapter summary
    3. 3: Installing Docker
      1. Docker Desktop
      2. Installing Docker with Multipass
      3. Installing Docker on Linux
      4. Play with Docker
      5. Chapter Summary
    4. 4: The big picture
      1. The Ops Perspective
      2. The Dev Perspective
      3. Chapter Summary
  2. Part 2: The technical stuff
    1. 5: The Docker Engine
      1. Docker Engine - The TLDR
      2. Docker Engine - The Deep Dive
      3. Chapter summary
    2. 6: Images
      1. Docker images - The TLDR
      2. Docker images - The deep dive
      3. Images - The commands
      4. Chapter summary
    3. 7: Containers
      1. Docker containers - The TLDR
      2. Docker containers - The deep dive
      3. Containers - The commands
      4. Chapter summary
    4. 8: Containerizing an app
      1. Containerizing an app - The TLDR
      2. Containerizing an app - The deep dive
      3. Containerizing an app - The commands
      4. Chapter summary
    5. 9: Multi-container apps with Compose
      1. Deploying apps with Compose - The TLDR
      2. Deploying apps with Compose - The Deep Dive
      3. Deploying apps with Compose - The commands
      4. Chapter Summary
    6. 10: Docker Swarm
      1. Docker Swarm - The TLDR
      2. Docker Swarm - The Deep Dive
      3. Docker Swarm - The Commands
      4. Chapter summary
    7. 11: Docker Networking
      1. Docker Networking - The TLDR
      2. Docker Networking - The Deep Dive
      3. Docker Networking - The Commands
      4. Chapter Summary
    8. 12: Docker overlay networking
      1. Docker overlay networking - The TLDR
      2. Docker overlay networking - The deep dive
      3. Docker overlay networking - The commands
      4. Chapter Summary
    9. 13: Volumes and persistent data
      1. Volumes and persistent data - The TLDR
      2. Volumes and persistent data - The Deep Dive
      3. Volumes and persistent data - The Commands
      4. Chapter Summary
    10. 14: Deploying apps with Docker Stacks
      1. Deploying apps with Docker Stacks - The TLDR
      2. Deploying apps with Docker Stacks - The Deep Dive
      3. Deploying apps with Docker Stacks - The Commands
      4. Chapter Summary
    11. 15: Security in Docker
      1. Security in Docker - The TLDR
      2. Security in Docker - The deep dive
      3. Chapter Summary
    12. 16: What next
      1. Feedback and reviews

Product information

  • Title: Docker Deep Dive - Second Edition
  • Author(s): Nigel Poulton
  • Release date: July 2023
  • Publisher(s): Packt Publishing
  • ISBN: 9781835081709