More Docker. Easy Access. New Streamlined Plans. Learn more.

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

Have you ever wondered how images work? This guide will help you to understand image layers - the fundamental building blocks of container images. You'll gain a comprehensive understanding of how layers are created, stacked, and utilized to ensure efficient and optimized containers.