QamoosTech
DevOps & CloudInfrastructureIntermediateDocker

Docker Image

PronunciationDOK-er IM-ij

Definition

A read-only template that contains an application and everything it needs to run, such as the code, libraries, and settings. A container is a running copy of an image.

Where you hear it

In build pipelines, container registries, and deployment files.

Examples

  • The docker image is 1.2 GB, so we need a smaller base image.
  • Tag the image with the commit hash before you push it.
  • The image was rebuilt with the new dependency and pushed to the registry.

Common mistake

Building an image with secrets inside. Anyone who can pull the image can read those secrets.

Don't confuse with

An image is the template. A container is the running instance that is started from it.