Docker: Up & Running

By Sean P. Kane with Karl Matthias

This book is the fastest way to get up and running with Docker and Linux containers. It covers the whole DevOps workflow from initial image creation through production delivery.

The 3rd edition takes a very hands-on-approach to teaching. Everything in the book is designed, so that you can follow along as much as you want. Not only will you learn everything you need to know about Docker, but you will also become well-versed in Linux containers and how you can use them to streamline and improve every single step of your software delivery pipeline, and help ensure that your whole platform is designed to be as robust and repeatable as possible.

By the time you're done, you'll be ready to use Docker and Linux containers in all of your real world processes.

Order Now

About the book

This book is for everyone who has a stake in making sure that software can be written, delivered, and run in production as smootly and reliably as possible. If you are managing technical teams, architecting platforms, developing services, building DevOps pipelines, supporting production operations, or responding to alerts at 2AM, then this book is designed for you. Docker and Linux containers have changed almost every aspect of modern software delivery and this book will help you understand how all of these changes can be leveraged to speed up software deliver while also creating more robust and reliable systems to serve your end users.

Ch 1: Introduction

A quick introduction to Docker, what it is, and how a Docker-based workflow can be user to improve multiple stages in the DevOps software delivery pipeline.

Ch 2: The Docker Landscape

A much deeper dive into the Docker ecosystem and the many concepts that containers bring into modern platform design and application development.

Ch 3: Installing Docker

Covers multiple approaches to installing Docker on Linux (multiple distributions), macOS, and Windows, including Docker Desktop, Community edition, Vagrant, and more.

Ch 4: Working w/ Docker Images

Dive into the details of building container images with Docker. This section will help you understand how to create Dockerfiles, package your application into an image for one or more architectures, optimize the images for size and build speeds, and much more.

Ch 5: Working with Containers

Provides an overview of the basics of working with both Linux and Windows containers. Also covers the storage and resource management options that are available for application management.

Ch 6: Exploring Docker

An overview of the techniques that can be used to gather information from you containers. This include logs, resource usage statistics, system events, health checks, and more.

Ch 7: Debugging Containers

A deep dive into how images and containers work in Linux and all of the information that you can gather to understand how your applications are assembled and working.

Ch 8: Exploring Docker Compose

A practical exploration of Docker Compose and how it can be used to reliably spin-up complex, multi-containers environments for local development and testing.

Ch 9: To Production Containers

A broad overview of many of the concepts that are important to running containers in production.

Ch 10: Containers at Scale

An exploration of a few options for running containers in production. This include Docker swarm-mode, Kubernetes, and AWS ECS Fargate.

Ch 11: Advanced Topics

A deep dive into Linux control group, namespaces, security, networking, and storage.

Ch 12: The Expanding Landscape

A short review of some of the alternative tools that user's might find useful supplements to their workflows.

Ch 13: Container Platform Design

An overview of both the 12-Factor App and the Reactive Manifesto and how these important articles relate to designing applications for Linux containers.

Ch 14: Conclusion

A recap of the benefits that Docker and Linux containers provide for modern application and platform development.

Code samples

The book includes hands on examples.

You can find the longer code samples here: https://github.com/bluewhalebook/docker-up-and-running-3rd-edition.

Third edition

The book is now in its 3rd edition, which includes one completely new chapter, 3 important new sections (buildkit, buildx, and rootless containers), and major updates to all of the original chapters.

About the authors

Sean P. Kane

Sean P. Kane is the founder of ./techlabs.sh, a company that offers customized DevOps and production operations training, enginering, and talks. Sean has extensive experience with Linux containers, Terraform, Kubernetes, Docker, and much more.

Sean is the lead inventor on a container-related patent and also teaches many highly-rated interactive DevOps classes with O'Reilly Media. Over his 30+ year carrer, Sean has worked as a production operations and distributed systems engineer at SuperOrbital, New Relic, Hewlett Packard, and many others.

For more info, check out techlabs.sh.

Karl Matthias

Karl Matthias is is currently a member of the technical staff at an early-stage startup.

Previous to this, he has held roles as VP of Architecture, Principal SRE, and Principal Systems engineer at companies like Community.com, Nitro Software, and New Relic.

For more info, check out relistan.com.

Buy now

Docker: Up & Running, 3rd edition is available at the online stores below and at your local bookstore.
The 3rd edition can also be pre-ordered via Amazon.

News

Consider signing up at techlabs.sh to get current news, blog posts, and talks on Linux container and DevOps.

Docker: Up & Running, 3rd edition, has been translated into German!

Docker: Up & Running, 3rd edition, has been translated into German by Thoman Demmig and sold in partnership with dpunkt.verlag! It's available from Amazon.de, dpunkt.verlag|O'Reilly, and at all major German bookstores.

Get the 3rd edition in German now! »

Docker: Up & Running, 3rd edition, has been published!

Docker: Up & Running, 3rd edition, has been published! It's available on Amazon, O'Reilly, and at all major bookstores. The 3rd edition includes one completely new chapter, 3 important new sections (buildkit, buildx, and rootless containers), and major updates to all of the original chapters. The book coverage has been updated from Docker Engine 18.09 to Docker Engine 20.10, covering all the important changes in between.

Get the 3rd edition now! »

Early release of Docker: Up & Running, 3rd edition!

The early release of Docker: Up & Running, 3rd edition, is now available and being frequently updated! The 3rd edition, includes one completely new chapter, 3 important new sections (buildkit, buildx, and rootless containers), and major updates to all of the original chapters. The book coverage has been updated from Docker Engine 18.09 to Docker Engine 20.10, covering all the important changes in between.

Read the Early Release now! »

Docker: Up & Running, 2nd edition has been published!

Docker: Up & Running, 2nd edition, has been published! It's available on Amazon, O'Reilly, and at all major bookstores. The 2nd edition is about 128 pages longer then the 1st edition, including many new chapters and major updates to all the original chapters and code examples (everything is now updated to Docker Engine 18.09).

Get a copy! »

Docker: Up & Running is updated to include Docker 1.10!

The update version of Docker: Up & Running has been published and the ebook and print edition are now available online and in your local bookstores! Includes coverage of new features included in Docker 1.10.

Get a copy! »

Docker: Up & Running is published!

The official release of Docker: Up & Running has been published and the ebook and print edition are now available online and in your local bookstores!

Get a copy! »