Chapter 8. Build automation and advanced image considerations

This chapter covers

  • Automated packaging with Dockerfile
  • Metadata instructions
  • File system instructions
  • Packaging for multiprocess and durable containers
  • Trusted base images
  • Working with users
  • Reducing the image attack surface

A Dockerfile is a file that contains instructions for building an image. The instructions are followed by the Docker image builder from top to bottom and can be used to change anything about an image. Building images from Dockerfiles makes tasks like adding files to a container from your computer simple one-line instructions. This section covers the basics of working with Dockerfile builds and the best reasons to use them, a lean overview of the instructions, ...

Get Docker in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.