Skip to Content
Docker in Action, Second Edition
book

Docker in Action, Second Edition

by Stephen Kuenzli, Jeffrey Nickoloff
November 2019
Intermediate to advanced
336 pages
11h 25m
English
Manning Publications
Content preview from Docker in Action, Second Edition

Chapter 8. Building images automatically with Dockerfiles

This chapter covers

  • Automated image packaging with Dockerfiles
  • Metadata and filesystem instructions
  • Creating maintainable image builds with arguments and multiple stages
  • Packaging for multiprocess and durable containers
  • Reducing the image attack surface and building trust

A Dockerfile is a text file that contains instructions for building an image. The Docker image builder executes the Dockerfile from top to bottom, and the instructions can configure or change anything about an image. Building images from Dockerfiles makes tasks like adding files to a container from your computer simple one-line instructions. Dockerfiles are the most common way to describe how to build a Docker image. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Docker: Up & Running, 2nd Edition

Docker: Up & Running, 2nd Edition

Sean P. Kane, Karl Matthias
Docker in Practice, Second Edition

Docker in Practice, Second Edition

Ian Miell, Aidan Sayers
Docker Deep Dive

Docker Deep Dive

Nigel Poulton

Publisher Resources

ISBN: 9781617294761Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link