Introduction
Building Docker images in a pipeline automates creating container images from your app code. This helps package your app with all its parts so it runs the same everywhere.
When you want to automatically create a Docker image every time you update your app code.
When you need to test your app inside a container before sending it to production.
When you want to store your app image in a registry for easy sharing and deployment.
When you want to speed up your development by automating image builds.
When you want to ensure consistency by building images in a controlled environment.