Read chapters 6 through 9 first to learn packaging, then chapters 15 and 16 to protect data and pass security reviews. The new LLM content can wait.

封面: Docker Deep Dive

Docker Deep Dive · Nigel Poulton ·

Cover image: Open Library

Key Takeaways

  • Buy the 2025 edition on Leanpub; it was last updated on May 12, 2025. The new edition adds Docker Debug, Docker Scout, and multi-architecture images.
  • The six most important chapters: chapters 6 through 9 cover packaging, and chapters 15 and 16 cover how to run safely on a client's systems.
  • The new LLM content added in the 2025 edition can wait; the chatbot built in the book is, at its core, still a Compose application.

Nigel Poulton last updated the 2025 edition of *Docker Deep Dive* on May 12, 2025. The new edition adds Docker Model Runner and Docker Scout—the former for running LLMs on a local machine, the latter for scanning images for vulnerabilities.

A container primer now has a dedicated section on building an LLM chatbot with Compose. That detail shows how much deployment work has changed, and how much the book has changed with it.

For a Forward Deployed Engineer (FDE), learning Docker is rarely out of curiosity. The job requires bringing software into an environment you don't control and getting it running the first time. This book covers exactly that—provided you know which six chapters to read first and which content can wait.

Which Edition to Buy

The book currently has two edition lines. The second edition was published by Packt on July 20, 2023, runs 266 pages, and is subtitled "Zero to Docker in a Single Book". The book's introduction makes clear that readers need no prior Docker knowledge.

The 2025 edition is sold on the author's Leanpub page. On Apple Books, it is published by the author's own company, Nigel Poulton Ltd, and runs 262 pages.

Leanpub's marketing calls it the best-selling and most comprehensive Docker book, suitable for both beginners and experienced developers. You don't need to take such marketing claims entirely at face value.

Even so, you should still choose the 2025 edition. It covers Docker Scout, Docker Debug, and multi-architecture images that run on both x86 and ARM. All three are directly useful in client projects: scan images before delivery, troubleshoot containers that won't start, and build once to fit all kinds of servers.

The First Four Chapters Teach Packaging

In the 2025 edition's table of contents, chapter 6 covers images, chapter 7 covers containers, and chapter 8 is "Containerizing an app". Chapters 6 and 7 cover the fundamental operations no application can run without. Chapter 8 covers how to turn your own software into an image, and is the chapter that most deserves a slow read.

Chapter 9 covers running multi-container applications with Compose. At a client site, this is usually how an application runs together with its dependencies. Take, for example, an API service that needs both a database and a queue.

After reading chapter 8, the API's minimal Dockerfile looks roughly like this:

FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
USER 1000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]

After reading chapter 9, the three components can go into a single Compose file:

services:
  api:
    build: .
    ports:
      - "8000:8000"
    environment:
      DATABASE_URL: postgresql://app:app@db:5432/app
      QUEUE_URL: redis://queue:6379
    depends_on:
      - db
      - queue
  db:
    image: postgres:16
    environment:
      POSTGRES_USER: app
      POSTGRES_PASSWORD: app
    volumes:
      - dbdata:/var/lib/postgresql/data
  queue:
    image: redis:7
volumes:
  dbdata:

Without this file, you'd have to send the client's IT team a long page of instructions covering startup order, environment variables, and network ports. With it, everything comes down to one

docker compose up

command. This file also serves as deployment documentation that the client's ops team can read directly.

The 2023 edition follows the same chapter order: images, containers, containerization, Compose, followed by networking, volumes, and security. According to Hoopla, that edition also covers Swarm and stacks. If your goal is to get software running on a client's machine, you can set both of those aside for now.

Data and Security Are Where Things Go Wrong

Chapter 15 covers volumes and persistent data, and chapter 16 covers Docker security. These two chapters sit near the back of the book and are easy to put off until the end. But at a client site, if the client's data disappears every time a container restarts, no amount of polished demoing will save you.

The

db

line for the

volumes

service in the Compose file above exists precisely for this. On security, the client's security team usually needs to understand what's inside an image before allowing it to run on their internal network. The Docker Scout added in the 2025 edition lets you have the answers ready before they even ask.

Three Mistakes to Avoid Before Delivering an Image

First, building only for your own machine's architecture. Your laptop may be ARM, but the client's servers are x86. The multi-architecture images covered in the 2025 edition can save you an afternoon of wasted on-site debugging.

Second, forgetting to attach a volume to the database. Test this on your own machine first: delete the container, restart it, and check whether the data is still there. If it's gone, reread chapter 15 before going to the client.

Third, delivering an image without a vulnerability scan. Attach a Scout report, and the meeting with the security team turns from an argument into a checklist to work through item by item.

Save the New LLM Content for Later

The 2025 edition adds Docker Model Runner for running LLMs locally, Wasm containers, and a multi-container LLM chatbot built with Compose. For an FDE doing applied AI work, this part is appealing—especially when clients don't want their data to leave their own infrastructure.

But this content is only truly useful once you've practiced the six chapters above until they're second nature, because that chatbot is, at its core, still a Compose application.

When reading FDE job postings, watch for mentions of on-prem, client environments, or containerization. If they appear, don't just write "familiar with Docker" on your resume.

Instead, be specific: containerized a service, used Compose to run it alongside a database, and scanned the image before delivery—then attach a link to a code repository that proves it.

This book goes deeper than what you'll need in your first week at a client site, and that's actually a strength. The six chapters above are enough for your first deployment. The rest will come in handy the day a client asks whether they can run LLMs on their own infrastructure.

Was this article helpful?

Thanks for your feedback!

4 sources

Next on the roadmap · Phase 1: Foundational Awareness Before touching client systems, spend five weeks learning security for free Harvard's free CS50 cybersecurity course teaches the habits an FDE needs most: weigh risk against convenience before a client grants you access.