O'Reilly logo

Docker in Production: Lessons from the Trenches by Justin Cormack, Joe Johnston, Milos Gajdos, Antoni Batchelli, John Fiedler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. The Stack

Every production Docker setup includes a few basic architectural components that are universal to running server clusters--both containerized and traditional. In many ways, it is easiest to initially think about building and running containers in the same way you are currently building and running virtual machines but with a new set of tools and techniques.

  1. Build and snapshot an image.
  2. Upload image to repository.
  3. Download image to a host.
  4. Run the image as a container.
  5. Connect container to other services.
  6. Route traffic to the container.
  7. Ship container logs somewhere.
  8. Monitor container.

Unlike VMs, containers provide more flexibility by separating hosts (bare metal or VM) from applications services. This allows for intuitive ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required