DevOps module 03

Package once. Run consistently.

Learn how Docker turns application source into a portable, inspectable and versioned runtime artifact.

01

Image

Immutable application package built from ordered Dockerfile layers.

02

Container

Running process created from an image with isolated filesystem and networking.

03

Registry

Versioned image store used to distribute trusted artifacts.

04

Volume

Persistent data mounted outside the disposable container layer.

05

Network

Controlled communication path between containers and external services.

06

Security

Run as non-root, minimise packages, scan images and avoid embedded secrets.

Build checklist

01

Small base image

Use a supported minimal image and pin deliberate versions.

02

Layer efficiency

Copy dependency manifests before source to improve cache reuse.

03

Runtime safety

Use a non-root user, health checks and read-only configuration where practical.