Appearance
Fresh
Building images
Back
Building images
Table of contents
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 levelBeginner
Time to complete25 minutes
PrerequisitesNone
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
Understanding the image layers This concept page will teach you about the layers of container image.
Writing a Dockerfile This concept page will teach you how to create image using Dockerfile.
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
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.
Multi-stage builds This concept page will teach you about the purpose of the multi-stage build and its benefits