Share feedback
Answers are generated based on the documentation.

Building images

Building container images is both technical and an art. You want to keep the image small and focused to increase your security posture, but also need to balance potential tradeoffs, such as caching impacts. In this series, you’ll deep dive into the secrets of images, how they are built and best practices.
Skill level Beginner
Time to complete 25 minutes
Prerequisites None

About this series

Learn how to build production-ready images that are lean and efficient Docker images, essential for minimizing overhead and enhancing deployment in production environments.

What you'll learn

  • Understanding image layers
  • Writing a Dockerfile
  • Build, tag and publish an image
  • Using the build cache
  • Multi-stage builds

Modules

  1. Understanding the image layers

    This concept page will teach you about the layers of container image.

  2. Writing a Dockerfile

    This concept page will teach you how to create image using Dockerfile.

  3. Build, tag, and publish an image

    This concept page will teach you how to build, tag, and publish an image to Docker Hub or any other registry

  4. Using the build cache

    This concept page will teach you about the build cache, what changes invalidate the cache and how to effectively use the build cache.

  5. Multi-stage builds

    This concept page will teach you about the purpose of the multi-stage build and its benefits