whatis container-image

Container Image

Also known as: Docker image, OCI image, Dockerfile

A read-only, layered template containing an app and its filesystem, from which containers are started. Built from a Dockerfile.

What Is a Container Image?

Images are stacks of filesystem layers plus metadata like the default command and exposed ports. Each Dockerfile instruction adds a layer, and layers are shared between images to save space and download time.

Images are stored in registries such as Docker Hub, GitHub Container Registry, or a self-hosted one, and referenced by name and tag (nginx:1.27) or immutable digest.

Example

FROM debian:stable-slim
RUN apt-get update && apt-get install -y curl
CMD ["curl", "--version"]