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...
Master Docker from the kernel up: namespaces, cgroups, BuildKit caching, Compose topologies, signed images, Prometheus observability, and a systematic debugging runbook.
Minimum price
$19.00
$29.00
About the Book
Docker rewards practitioners who stop treating it as a command-line wrapper around `chroot`. This book builds that mental model from the kernel primitives up — namespaces, cgroups, overlay filesystems, the client/daemon/BuildKit/containerd split — and then spends the bulk of its pages on the work that actually fills pager windows at 3 a.m.: writing lean multi-stage Dockerfiles, wiring Compose for a real service topology with PostgreSQL and Redis, shipping reproducible multi-platform images through CI, scanning and signing artifacts, deploying them, instrumenting them with Prometheus and Grafana, and debugging them when they misbehave.
Every chapter pairs explanation with runnable YAML, Dockerfile, Bash, and Python, states the expected output, flags the pitfalls that bite teams who learned Docker from Stack Overflow answers, and closes with a recap checklist.
What you will be able to do after reading it:
- Explain container behavior from the kernel up: PID namespaces and signal semantics, cgroup limits, layered filesystems, and what an image manifest actually contains.
- Write Dockerfiles that age well: correct `ENTRYPOINT`/`CMD` contracts with an init process, cache-friendly layer ordering, `.dockerignore`, multi-stage builds, non-root users, and healthchecks.
- Use BuildKit features deliberately: cache mounts, bind mounts, secret mounts, multi-platform builds, Bake as build-as-code, and provenance attestations.
- Publish images reproducibly: reference syntax, digests, a local TLS registry, tag promotion policy, and verifying what you pushed.
- Manage state and networking: volumes, bind mounts, tmpfs, storage drivers, backups and migration, the five network drivers, port publishing, and container DNS.
- Run multi-service stacks with Compose, including healthcheck-gated `depends_on`, profiles, `develop` watch mode, and `extends`/`include`.
- Test containerized applications at every level, from unit tests without a container to image smoke tests, integration tests, and end-to-end suites.
- Build CI/CD pipelines that build once and promote by digest, in GitHub Actions, GitLab CI, or Jenkins.
- Secure the supply chain with Trivy scanning, misconfiguration policies, Sigstore/cosign signing and attestations, and a complete security gate.
- Observe production with Prometheus metrics, structured logging, health and readiness endpoints, alerting, OpenTelemetry tracing, and provisioned Grafana dashboards.
- Set CPU and memory limits, measure throttling and OOM behavior, and benchmark a container against a host baseline.
- Debug systematically using decision trees, health logs, filesystem inspection, `nsenter`-style toolbox containers, and a repeatable runbook.
Includes a 14-chapter capstone that builds, scans, signs, deploys, observes, breaks on purpose, rolls back, and tears down a full application stack, plus a production-readiness checklist and an addendum covering Compose v5 scheduled jobs.
About the Author
SouthStone Publications is a publisher dedicated to advancing practical knowledge across web development, IT engineering, programming, artificial intelligence, and cybersecurity. Working closely with a network of subject matter experts and industry practitioners, SouthStone produces books, guides, and training programs designed to translate complex technical concepts into clear, actionable knowledge. Its catalog has supported developers, engineers, analysts, and security professionals around the world in building more resilient, scalable, and well-architected systems.
Proud to be the first publisher in the Cybersecurity category on LeanPub, SouthStone Publications is committed to bridging the gap between deep technical expertise and accessible education, helping practitioners at every stage of their careers stay ahead in a rapidly evolving digital landscape.
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
See full terms...
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.)
Learn more about writing on Leanpub
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
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.