Ansible

Best Docker and Ansible Books for 2026

This post contains affiliate links. If you buy through them, we may earn a small commission at no extra cost to you. Learn more.

Every Ansible book on this list went to print before ansible-core 2.19 rewrote the templating engine. Only one of the Docker books came out after Docker Engine 29 changed its defaults for fresh installs, and that gap decides which edition you buy more than star ratings do, so we measured it for each title, placing its publication date against the release history of both tools (re-checked December 2026 against Docker Engine 29.10 and ansible-core 2.22).

Original content from computingforgeeks.com - post 22026

The nine picks below cover the full automation shelf for one engineer: Docker for packaging and running services, Ansible for configuring the hosts they land on, and the books that join the two in pipelines and Kubernetes. If you only need one tool, our single-topic lists of the best Docker books and the best Ansible books go deeper on each. This page is for readers who need both, in a sensible order.

Which Docker and Ansible book to buy first

Start with the tool you touch every day, then add the bridge book that matches where your automation runs. The short version, by job:

Two books are enough for most readers: one from the Docker half and one from the Ansible half. The bridge titles pay off once both basics are in place, because they assume you can already write a Dockerfile and a playbook without looking anything up.

Docker and Ansible books compared by release

A tool book ages with the tool, so the number that matters is how many feature releases have shipped since it was printed. We matched each publication date against the Docker Engine release list on GitHub and the ansible-core history on PyPI, counting the first GA release of each minor line (ansible-base 2.10, then ansible-core) published after the book. Every row uses the publication date in the Amazon catalog record, except Docker Deep Dive, whose Kindle record keeps its 2016 first-listing date; that row uses the May 12, 2025 update date on the author’s Leanpub page:

BookCoversPublishedNewest release thenReleases sincePages
Docker Deep Dive (2025 Edition)DockerMay 2025Docker 28.115418 (Kindle)
Learn Docker in a Month of Lunches, 2nd Ed.DockerOct 2025Docker 28.511488
The Ultimate Docker Container Book, 4th Ed.Docker, KubernetesMar 2026Docker 29.37768
Ansible for DevOps, 2nd Ed. (paperback)Ansible, DockerAug 2020Ansible 2.913478
Learn Ansible, 2nd Ed.AnsibleMay 2024ansible-core 2.175414
Ansible for Kubernetes by ExampleAnsible, KubernetesMay 2023ansible-core 2.148308
RHCE Ansible Automation Study GuideAnsibleJul 2025ansible-core 2.184212
Continuous Delivery with Docker and Jenkins, 3rd Ed.Docker, Ansible, JenkinsMay 2022Docker 20.10, ansible-core 2.1228 Docker, 10 Ansible374
Infrastructure as Code, 3rd Ed.Tool-agnostic designApr 2025n/an/a434
Release counts use the moby/moby GitHub releases API and the PyPI release history, one count per minor line at its first GA release. Dates are Amazon catalog publication dates; Docker Deep Dive uses its Leanpub update date (2025-05-12).

Ansible is where the table bites. The ansible-core 2.19 porting guide describes an overhaul of templating plus a feature called Data Tagging, and one consequence is that a conditional which does not return a real boolean now fails by default. Older books lean on truthy shortcuts such as when: my_list, so expect a few examples to error on a current control node until you rewrite them as when: my_list | length > 0. The guide also documents the ALLOW_BROKEN_CONDITIONALS setting, which turns the error back into a warning while you fix old code. The concepts in every Ansible pick still hold; the syntax in some examples does not.

Docker moved less, but the output you compare against has changed. The Docker Engine 29.0 release notes make the containerd image store the default on fresh installs, hide untagged images from docker image ls unless you pass --all, and refuse clients that ask for an API older than v1.44. Commands from a 2025 book still run; the listings simply look different from the screenshots.

How these picks were chosen

We started from the previous version of this page, then searched the full Packt, O’Reilly, Manning and Apress catalogs on Amazon for Docker and Ansible titles, current and retired. Each candidate had to pass four checks:

  • Buyable edition: the linked ASIN is the newest edition Amazon sells new, confirmed through the Amazon catalog API in December 2026, with binding, page count and date read from the same record.
  • Publisher contents: chapter lists and scope come from the publisher page, the author site or the code repository for the book, not from memory.
  • Release age: the Amazon catalog publication date (the Leanpub update date for the Kindle-only Docker Deep Dive) was placed against both release histories, as in the table above.
  • Overlap: a title had to add something the other eight do not. The old Ansible DevOps Cookbook was dropped, and both Up and Running references moved to the single-tool lists.

We did not run every lab in every book, and the guide makes no claim that we did. What we can state is which release each one was written against, which is the fact most reviews leave out, and the one that decides how much of the sample code runs unchanged on a 2026 install.

1. Docker Deep Dive (2025 Edition)

The May 2025 edition is the current Docker Deep Dive, and Nigel Poulton built it around the newest Docker tooling. It runs from images and containers through Compose, Swarm and multi-architecture builds, then adds Docker Model Runner for local LLMs, Wasm containers, Docker Debug and Docker Scout scanning.

Docker Deep Dive 2025 Edition by Nigel Poulton book cover
Docker Deep Dive, 2025 Edition by Nigel Poulton. Image: Nigel Poulton (Leanpub).

Docker Deep Dive is the cheapest way to cover Docker end to end: 418 pages on Kindle for about $10. Poulton writes for someone who has never run a container and still reaches multi-architecture images and vulnerability scans by the end, so one read takes a beginner to the point where the Ansible Docker modules make sense. The link goes to the Kindle edition on purpose. The print copies on Amazon are the 2023 paperback and the 2024 hardcover, which predate the Model Runner material.

Pass on it if you want print, because the current text is ebook-only on Amazon. It also stops at Swarm for orchestration, so Kubernetes readers need pick 3 or 6 next. Around $10 on Kindle. Check the current price on Amazon.

2. Learn Docker in a Month of Lunches, Second Edition

Elton Stoneman splits Docker into 22 lessons, each sized for a lunch break and each closing with a lab. The Manning description of the second edition lists multi-platform builds, cloud container services, legacy Windows apps and a Kubernetes primer as the new material.

Learn Docker in a Month of Lunches Second Edition by Elton Stoneman book cover
Learn Docker in a Month of Lunches, Second Edition by Elton Stoneman. Image: Manning.

The structure is the reason to buy it. At 488 pages it is longer than Docker Deep Dive, but each chapter is a fixed one-hour unit, which suits readers who stall on long technical books. Every example runs on Linux, Windows and macOS, and the observability and CI/CD lessons set you up for the pipeline book at pick 8.

Readers who already run containers daily will find the early lessons slow. When we checked in December 2026, Amazon listed it with a six to seven day shipping lead time rather than as in stock; seller and lead time vary. Around $38, list $50. Check the current price on Amazon.

3. The Ultimate Docker Container Book, Fourth Edition

The fourth edition by Gabriel N. Schenker, published March 31, 2026, is the only Docker title here published after Docker Engine 29 shipped. The publisher description runs from container basics through images, state and networking to Kubernetes in production, cloud platforms, and security and governance.

The Ultimate Docker Container Book Fourth Edition by Gabriel N. Schenker book cover
The Ultimate Docker Container Book, Fourth Edition by Gabriel N. Schenker. Image: Packt.

At 768 pages it is the longest book on this list, yet at about $50 it still costs less than two thinner picks, the Jenkins pipeline book and Infrastructure as Code. Its code repository shows Compose-based labs, Kubernetes manifests and a monitoring chapter with Prometheus, Grafana and OpenTelemetry demos, so it covers what you run after the first container works. For a reader heading from Docker toward Kubernetes, this one book replaces two.

As a first book it is the wrong choice. The publisher description itself says a basic understanding of Docker is useful, and the pace assumes it. The size is also real, so the Kindle edition is easier to carry around. Around $50. Check the current price on Amazon.

4. Ansible for DevOps, 2nd Edition

The Jeff Geerling book is the one that ties the two tools together. Its 15 chapters run from inventories and playbooks through roles, collections, testing and TLS automation, and chapter 15 (Docker and Ansible) builds and runs container images from playbooks. The companion repository also carries a playbook that builds a three-node Kubernetes cluster.

Ansible for DevOps 2nd Edition by Jeff Geerling book cover
Ansible for DevOps, 2nd Edition by Jeff Geerling. Image: Midwestern Mac.

Every example lives in the public ansible-for-devops repository on GitHub, so you can diff the printed code against what you run. Two numbers frame the purchase. The 478-page paperback is dated August 2020, thirteen Ansible minor lines ago. The Leanpub ebook, by contrast, was last updated on May 25, 2025, so it was updated while ansible-core 2.18 was current. At about $18 the paperback is the cheapest print pick here, but the ebook carries the newer text.

Buyers who plan to copy examples straight onto a current control node should weigh the paperback carefully; module names and conditionals in a 2020 printing are the ones most likely to need edits. Around $18, list $20. Check the current price on Amazon.

5. Learn Ansible, Second Edition

The second edition by Russ McKendrick (Packt, May 2024) is the newest general Ansible book in this list. It covers installation on Linux, macOS and Windows, roles and Ansible Galaxy, LAMP and WordPress deployments, cloud builds on AWS and Azure, AWX, and running playbooks from GitHub Actions and Azure DevOps.

Learn Ansible 2nd Edition by Russ McKendrick book cover
Learn Ansible, Second Edition by Russ McKendrick. Image: Packt.

It sits four ansible-core releases behind, the smallest gap of any general Ansible book here. The labs use Canonical Multipass for local VMs, which keeps setup to one command on a laptop, and the CI chapters match how most teams now trigger automation. Pair it with our playbook tutorial and the roles walkthrough when you want the same ideas on a current release.

Container-first readers get less from it, since Docker is not a focus of the book. The cloud chapters also assume AWS and Azure accounts. Around $43, list $47. Check the current price on Amazon.

6. Ansible for Kubernetes by Example

Luca Berton worked with the Red Hat Ansible engineering team, and this Apress title (308 pages, May 2023) applies Ansible to Kubernetes: pods, storage, load balancing, Helm packages and node state, one module per lesson.

Ansible for Kubernetes by Example by Luca Berton book cover
Ansible for Kubernetes by Example by Luca Berton. Image: Apress.

This is the bridge book for readers whose containers now run on a cluster rather than a single Docker host. The Springer listing puts the focus on reproducing, troubleshooting and fixing common errors, which is the part generic Ansible books skip. Our own Ansible Kubernetes cluster guide covers the build side if you want a working cluster to practise on.

Pass on it if you have no cluster yet; every lesson assumes one. At seven ansible-core releases behind, expect some conditionals to need the 2.19 fix described above. Around $48, list $65. Check the current price on Amazon.

7. Red Hat Certified Engineer (RHCE) Ansible Automation Study Guide

Alex Soto Bueno and Andrew Block of Red Hat wrote this 212-page O’Reilly guide (July 2025) for EX294, the performance-based Ansible exam. It walks through installing Ansible, inventories and configuration files, ad hoc commands, SSH key setup on managed nodes and the playbook tasks the exam tests.

Red Hat Certified Engineer RHCE Ansible Automation Study Guide book cover
Red Hat Certified Engineer (RHCE) Ansible Automation Study Guide by Alex Soto Bueno and Andrew Block. Image: O’Reilly Media.

This is the newest Ansible book on the list, three ansible-core releases behind. Credential names have moved since it shipped. The Red Hat EX294 exam page now says a pass makes you a Red Hat Certified Advanced System Administrator in Ansible, which counts toward Red Hat Certified Engineer in Ansible, and its objectives list ansible-navigator alongside ansible-playbook. Read the current objectives next to the book before booking a date.

Without an exam date it is a narrow read, since the scope follows the objectives rather than day-to-day work. Amazon showed only two copies left when we checked. Around $33, list $60. Check the current price on Amazon. Our RHCSA and RHCE book list covers the rest of the Red Hat track.

8. Continuous Delivery with Docker and Jenkins, 3rd Edition

The Packt book by Rafal Leszko builds a full pipeline from the pieces this page covers: Docker images, a Kubernetes pool, tests run from Jenkins, and servers provisioned with Ansible and Terraform. The code repository lists seven requirements for chapters 1 to 9: Java 8 or later, Docker, Jenkins, Python, Kubernetes, Ansible and Terraform.

Continuous Delivery with Docker and Jenkins Third Edition by Rafal Leszko book cover
Continuous Delivery with Docker and Jenkins, 3rd Edition by Rafal Leszko. Image: Packt.

No other pick shows Docker and Ansible working in the same delivery flow, which is why it stays. It is also the oldest book here by Docker release count: published in May 2022, it trails 27 Docker feature releases and 9 ansible-core releases. Treat it as a design reference for how the stages connect, and take the commands from current docs. Our Jenkins install guide gives you a current controller to follow along on.

Teams on GitHub Actions or GitLab CI should look elsewhere, because the pipeline chapters are Jenkins-specific. At about $57 it is also the most expensive pick, a lot for a 2022 edition. Check the current price on Amazon.

9. Infrastructure as Code, 3rd Edition

The third edition by Kief Morris (O’Reilly, April 2025, 434 pages) teaches no single tool. It covers how to design, test and deliver infrastructure code, including the split between declarative and procedural infrastructure languages and where infrastructure code fits in a platform strategy.

Infrastructure as Code 3rd Edition by Kief Morris book cover
Infrastructure as Code, 3rd Edition by Kief Morris. Image: O’Reilly Media.

Because it names no release, it is the one book on the list the version table cannot age. Morris notes on his site that the first edition centred on server configuration tools like Chef and Puppet, the second on infrastructure stacks, and the third on runtimes built from containers and serverless. That arc matches the move from configuring servers with Ansible to shipping containers with Docker, so read it once both are familiar.

Keep it for later in the shelf: there are no step-by-step labs. Amazon showed four copies left at our check. Around $56, list $80. Check the current price on Amazon. If Terraform is your next tool, our Terraform book list picks up from here.

Reading order for both tools

The order matters more than the count, because each book assumes the previous skill. For a reader starting from a Linux shell, this sequence covers both tools without repeating material:

  1. Containers first: Docker Deep Dive, with Docker installed from our Docker CE guide.
  2. Configuration next: Learn Ansible, on a control node set up with the Ansible install guide.
  3. Join them: chapter 15 of Ansible for DevOps, plus our walkthrough on managing Docker containers with Ansible.
  4. Pick a platform: The Ultimate Docker Container Book for Kubernetes, or the Jenkins pipeline book for CI.
  5. Step back: Infrastructure as Code, once you have code worth organising.

Swap step 2 for the RHCE study guide if the exam is the goal, and add Ansible for Kubernetes by Example once a cluster exists. Kubernetes certification readers should continue with our Kubernetes certification books.

What to re-check after the next release

Both tools ship on a steady clock. ansible-core has released a new minor line roughly every six months since 2021, and Docker Engine released eleven minor lines (29.0 through 29.10) between November 2025 and November 2026. The lag of any book therefore grows by about two Ansible releases and ten or more Docker releases a year, whatever its quality. These are the signals we track before changing a pick:

  • Porting guides: each ansible-core release ships one; a section on playbook behaviour, like the 2.19 conditionals change, means older examples need edits.
  • Breaking changes in Docker release notes: a new default (image store, API floor, CLI output) changes what readers see, even when commands still run.
  • New editions in publisher catalogs: Packt, Manning and O’Reilly list new editions months ahead, and a preorder is the cue to hold off on the old one.
  • Stock on Amazon: four picks showed scarce stock or a shipping lead time in December 2026, so a reprint or a new edition may be close.

When a new edition of any pick appears, compare its publication date against the two release histories the same way the table does, and buy the copy with the smaller gap. For self-hosted automation to practise against, AWX and Semaphore in Docker both run on a single small VM.

Keep reading

OpenCode CLI Cheat Sheet: Commands, Sessions and Fixes (PDF) AI OpenCode CLI Cheat Sheet: Commands, Sessions and Fixes (PDF) Best UI Applications for Managing Docker Containers Containers Best UI Applications for Managing Docker Containers Best Mini PC for Home Assistant: 4 Picks for HAOS and Proxmox Automation Best Mini PC for Home Assistant: 4 Picks for HAOS and Proxmox EcoFlow Home Assistant: Best Backup Batteries With Local Control Automation EcoFlow Home Assistant: Best Backup Batteries With Local Control GitHub Actions Lockfile: Pin Workflow Dependencies Securely Automation GitHub Actions Lockfile: Pin Workflow Dependencies Securely Run ONLYOFFICE Workspace in a Docker Container Containers Run ONLYOFFICE Workspace in a Docker Container

Leave a Comment

Press ESC to close