Working with Docker Images

In this chapter, we will cover the following recipes:

  • Creating an image from a container
  • Creating an account with Docker Hub
  • Logging in and out of a Docker image registry
  • Publishing an image to a registry
  • Looking at the history of an image
  • Removing an image
  • Exporting an image
  • Importing an image
  • Building an image using a Dockerfile
  • Building an Apache image - a Dockerfile example
  • Setting up a private index/registry
  • Automated builds - with GitHub and Bitbucket
  • Creating a custom base image
  • Creating a minimal image using a scratch base image
  • Building images in multiple stages
  • Visualizing the image hierarchy

Get Docker Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.