container
A running program that has been fenced off from the rest of the computer so it only sees its own files, network and processes.
In more detail
A container shares the host's operating system kernel but has its own view of files, network and processes, so it starts in moments and is easy to throw away. It is started from an image that bundles the program with everything it needs.
Examples
Ansible can reach containers through a connection plugin, and Molecule commonly uses containers as disposable test instances.Visual regression suites run their browsers inside one Linux container image so fonts and anti-aliasing match the baselines.Containers give strong dependency isolation and make running real backing services locally cheap. They do not remove responsibility for health, capacity, security, data and rollback, and a containerised process exits the moment its main process does, which is why twelve-factor processes stay in the foreground.docker run --rm alpine:3.20 ps -o pid,comm # one process, PID 1Production containers here hold only compiled code, run as a non-root user and handle SIGTERM for clean shutdown.Testcontainers starts a PostgreSQL container for each test class.Each broker, database and client in the course runs in its own container.The course stack runs five containers: grafana, loki, otel-collector, prometheus and service.A shell started inside a container is a classic runtime sensor alert.In this course: For integration tests a container gives a dependency such as a database a repeatable, disposable home. Start it from a pinned image, wait for it to report ready, and remove it after the test.Related terms
- virtual machine — A complete pretend computer, with its own operating system, running as software on a real computer.
- connection plugin — The plugin that decides how Ansible reaches a host: SSH by default, or local, WinRM, a container runtime or a network device protocol.
- Molecule driver — The Molecule setting that decides where test instances run, such as containers, virtual machines or an existing machine.
- image — A read-only package containing a program and everything it needs to run, used as the template for containers.
- Amazon ECS — Amazon Elastic Container Service, the AWS-native service that runs and keeps containers running on EC2 or Fargate.
- Amazon EKS — Amazon Web Services' managed Kubernetes service, which runs the control plane for you.
- kernel — The core of an operating system that controls the hardware and decides what every program is allowed to do.
- Docker — A platform for building, shipping and running software in containers.
- orchestration — Automatically deploying, scaling, restarting and moving containers across a group of machines.
- foreground process — A process that keeps running as the one its launcher started, instead of detaching into the background.
- process — A program that is currently running, with its own memory and a numeric identifier.
- namespace (Linux) — A Linux kernel feature that controls what a process can see, such as which other processes, network or host name.
- control group — A Linux kernel feature that limits how much memory, processor time and other resources a group of processes may use.
- union filesystem — A filesystem that stacks several directories on top of each other and shows them as one.
- containerization — Packaging an application with everything it needs to run into a container image.
- Pod — The smallest unit Kubernetes runs: one or more containers scheduled together on the same machine.
- Dockerfile — A text file of instructions, such as FROM, COPY and RUN, that tells Docker how to build an image.
- Testcontainers — A family of libraries that start real dependencies such as databases in throwaway containers for the length of a test.
- container name — A human-readable name you give a container with --name, so you can refer to it without copying its ID.
- Docker Compose — A Docker tool that starts several related containers together from one YAML file.
- non-root user — An ordinary user account with limited rights, which a container should run its service as.
- read-only root filesystem — Running a container so that nothing in its root filesystem can be changed, with writable space only where you add it.
- failure domain — A group of components that can fail together because they share something, such as a rack, power supply or zone.
Taught in
- Connections And Privilege Escalation — Ansible Configuration Management at Scale
- Testing With Molecule — Ansible Configuration Management at Scale
- Ninety Minutes, Sixty Five Questions — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Whose Job Was The Patch? — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Twelve Alerts, Ten Services — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Security Sprint: Fifteen Questions' Worth — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Nine Jobs, Not Nine Servers — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Technology Sprint: The Design Review — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Reading A 130-Minute Exam — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- The Edge: WAF, Shield, CloudFront And GuardDuty — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Decoupling: SQS, SNS, EventBridge And Step Functions — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Serverless And Container Patterns: Where The Limits Bite — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Compute Performance: Families, Placement And Lambda Memory — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Monday, Five Tickets — Microsoft Azure Administrator (AZ-104) Exam Prep
- The Link That Would Not Die: Keys, SAS And Storage Firewalls — Microsoft Azure Administrator (AZ-104) Exam Prep
- Would The X-Rays Survive? Redundancy, Encryption And Tools — Microsoft Azure Administrator (AZ-104) Exam Prep
- Old X-Rays At Hot Prices: Tiers, Lifecycle Rules And Undelete — Microsoft Azure Administrator (AZ-104) Exam Prep
- Monday At Eight: Scale Sets And Autoscale — Microsoft Azure Administrator (AZ-104) Exam Prep
- Ten Thousand Scans By Morning: Registries, Instances And Container Apps — Microsoft Azure Administrator (AZ-104) Exam Prep
- A Retailer Moves To Azure In A Weekend — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Regions, Zones And The Resource Hierarchy — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Compute — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Storage Accounts, Redundancy And Tiers — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Moving Data In — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Look-Alike Services Sprint — Microsoft Azure Fundamentals (AZ-900) Exam Prep
- Building and Pushing Container Images — Continuous Integration & Continuous Delivery Pipelines
- Running, And Still Down — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Container Images The Exam Way — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Choose The Right Workload Resource — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Sidecars And Init Containers — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Persistent And Ephemeral Volumes — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Jobs And CronJobs That Behave — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Design And Build: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Canary Releases From Replica Counts — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Kustomize Bases, Overlays And Patches — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Deployment: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Probes And Health Checks — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Monitoring With The Built-in CLI — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Container Logs — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Debugging Applications In Kubernetes — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Observability: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- ConfigMaps And Secrets — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Requests, Limits And Quotas — Certified Kubernetes Application Developer (CKAD) Exam Prep
- ServiceAccounts And Tokens — Certified Kubernetes Application Developer (CKAD) Exam Prep
- SecurityContexts And Capabilities — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Configuration And Security: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Services And Empty Endpoints — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Services And Networking: Timed Drill And Checkpoint — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Mock Exam: Sixteen Tasks Against The Clock — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Final Review: Where Your Marks Are At Risk — Certified Kubernetes Application Developer (CKAD) Exam Prep
- IAM as the Foundation — Cloud Infrastructure & Hyperscaler Architecture
- Users, Groups and Roles — Cloud Infrastructure & Hyperscaler Architecture
- Containers on AWS (ECS and EKS) — Cloud Infrastructure & Hyperscaler Architecture
- Comparing Compute Options — Cloud Infrastructure & Hyperscaler Architecture
- S3: Buckets and Objects — Cloud Infrastructure & Hyperscaler Architecture
- Forty Terabytes Nobody Opens: Storage And Databases — CompTIA Cloud+ (CV0-004) Exam Prep
- The Container That Did Not Come Back — CompTIA Cloud+ (CV0-004) Exam Prep
- Six Big Servers Doing Very Little: Rightsizing — CompTIA Cloud+ (CV0-004) Exam Prep
- Architecture Sprint: Ten Faults Before Friday — CompTIA Cloud+ (CV0-004) Exam Prep
- Six Systems And A Lease That Ends In March — CompTIA Cloud+ (CV0-004) Exam Prep
- Two Hundred And Fourteen Findings: Vulnerability Management — CompTIA Cloud+ (CV0-004) Exam Prep
- The Intern Who Could Delete Backups: Identity And Access — CompTIA Cloud+ (CV0-004) Exam Prep
- An Image That Runs As Root: Security Best Practices — CompTIA Cloud+ (CV0-004) Exam Prep
- Security Sprint: A Table To Complete — CompTIA Cloud+ (CV0-004) Exam Prep
- Ten Percent Off For Everyone: Source Control And Pipelines — CompTIA Cloud+ (CV0-004) Exam Prep
- Two Reminders, One Booking: Integration And DevOps Tools — CompTIA Cloud+ (CV0-004) Exam Prep
- DevOps Sprint: Tax At A Hundred Percent — CompTIA Cloud+ (CV0-004) Exam Prep
- Shared Responsibility Model & Cloud Threat Landscapes — Cloud Security & DevSecOps Engineering
- Cloud IAM Architecture & Permission Boundaries — Cloud Security & DevSecOps Engineering
- Software Composition Analysis with Trivy — Cloud Security & DevSecOps Engineering
- Container Hardening: Distroless & Rootless — Cloud Security & DevSecOps Engineering
- Kubernetes Pod Security Standards: Baseline & Restricted — Cloud Security & DevSecOps Engineering
- Runtime Anomaly Detection with Falco & eBPF — Cloud Security & DevSecOps Engineering
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Security Frameworks: NIST CSF 2.0, ISO 27001 & CIS — Cybersecurity Fundamentals, GRC & Cryptography
- Visual Regression Testing: Playwright & Snapshot Differencing — Design Systems & Component Engineering
- Codebase And Dependencies — DevOps & Site Reliability Engineering
- Port Binding And Concurrency — DevOps & Site Reliability Engineering
- Disposability, Dev Prod Parity And Logs — DevOps & Site Reliability Engineering
- Containers And Orchestration Context — DevOps & Site Reliability Engineering
- Why Containers: Bare Metal, Machines And Processes — Docker Architecture & Production Containers
- Namespaces And Cgroups: Isolation And Limits — Docker Architecture & Production Containers
- Union Filesystems, Images And Writable Layers — Docker Architecture & Production Containers
- Install Docker And Verify Your Environment — Docker Architecture & Production Containers
- Run, Stop, Restart And Remove A Container — Docker Architecture & Production Containers
- Commands, Logs, Exec And Exit Codes — Docker Architecture & Production Containers
- Build Context, Dockerignore And Your First Dockerfile — Docker Architecture & Production Containers
- FROM, WORKDIR, COPY And ADD — Docker Architecture & Production Containers
- RUN, SHELL And Efficient Layer Caching — Docker Architecture & Production Containers
- ARG, ENV, LABEL, EXPOSE And VOLUME — Docker Architecture & Production Containers
- CMD, ENTRYPOINT, USER And Process Signals — Docker Architecture & Production Containers
- Multi Stage Builds, Targets And Build Secrets — Docker Architecture & Production Containers
- Tags, Digests And Reproducible Image References — Docker Architecture & Production Containers
- Authenticate, Tag, Push And Pull From A Registry — Docker Architecture & Production Containers
- Minimal Bases, Non Root Users And Smaller Images — Docker Architecture & Production Containers
- Scan, Patch And Inspect The Software Supply Chain — Docker Architecture & Production Containers
- Ephemeral Filesystems And Named Volumes — Docker Architecture & Production Containers
- Bind Mounts, Permissions And Backups — Docker Architecture & Production Containers
- Bridge Networks, DNS And Container Communication — Docker Architecture & Production Containers
- Port Publishing, Localhost And Network Troubleshooting — Docker Architecture & Production Containers
- Environment, Secret Files And Runtime Restrictions — Docker Architecture & Production Containers
- Define The Service And Database With Compose — Docker Architecture & Production Containers
- Health Checks, Dependencies And Reliable Startup — Docker Architecture & Production Containers
- Development Overrides, Hot Reloading And Debuggers — Docker Architecture & Production Containers
- Integration Tests, Test Data And Compose Cleanup — Docker Architecture & Production Containers
- Diagnose Crashes, Resource Limits And Unhealthy Containers — Docker Architecture & Production Containers
- Build, Test And Promote The Same Image In CI — Docker Architecture & Production Containers
- Harden And Deliver The Complete Service Stack — Docker Architecture & Production Containers
- From Local Containers To Kubernetes — Docker Architecture & Production Containers
- OpenTelemetry, Container Publishing and Trimming — Modern .NET Core, C# & Enterprise Microservices
- Distributed Cache Invalidation: Redis & Tagged Purging — Production Full-Stack Engineering
- Health Probes & Graceful Shutdown: Kubernetes Lifecycles — Production Full-Stack Engineering
- Containerization Architecture: Multi-Stage Dockerfiles — Production Full-Stack Engineering
- What Go Is and Why It Matters — Concurrent Systems Programming with Go
- Installing the Go Toolchain — Concurrent Systems Programming with Go
- Arrays, Slices, and Maps — Concurrent Systems Programming with Go
- Files and the os Package — Concurrent Systems Programming with Go
- Parsing Arguments with flag — Concurrent Systems Programming with Go
- Building Static Binaries — Concurrent Systems Programming with Go
- Shipping in Scratch and Distroless Images — Concurrent Systems Programming with Go
- Containerizing and Testing the Final Build — Concurrent Systems Programming with Go
- The Virtual Machine, The Kit And The Runtime — Modern Java: Virtual Threads & High-Throughput Services
- Packaging Into A Container — Modern Java: Virtual Threads & High-Throughput Services
- Database Integration With Testcontainers — Modern Java: Virtual Threads & High-Throughput Services
- Why A Log And Not A Queue — Apache Kafka & Event Streaming
- Starting A Broker And Reading Its Metadata — Apache Kafka & Event Streaming
- From Docker To Desired State — Kubernetes: Production-Grade Container Orchestration
- Worker Nodes: kubelet, Runtime, CNI And kube-proxy — Kubernetes: Production-Grade Container Orchestration
- Bootstrap A Local Cluster And Check Your Context — Kubernetes: Production-Grade Container Orchestration
- Namespaces, Labels And Declarative Manifests — Kubernetes: Production-Grade Container Orchestration
- Pods, Init Containers And Sidecars — Kubernetes: Production-Grade Container Orchestration
- Deployments, ReplicaSets, Rollouts And Rollback — Kubernetes: Production-Grade Container Orchestration
- DaemonSets And Node Services — Kubernetes: Production-Grade Container Orchestration
- Jobs And CronJobs — Kubernetes: Production-Grade Container Orchestration
- Containerized Deployment: Multi-Stage Docker Builds — Next.js 15 & Modern App Router Architecture
- Runtime Configuration: CLI Flags & Native --env-file — Node.js Internals & Backend Services
- Close Phase & Signal Dispatch: Sockets & Teardown — Node.js Internals & Backend Services
- Production Hardening: Graceful Shutdown & Docker — Node.js Internals & Backend Services
- Prometheus Scraping And The Pull Model — Full-Stack Observability: Metrics, Tracing & Logging
- A Database You Cannot Recompile: Exporters — Prometheus Certified Associate (PCA) Exam Prep
- Alert Triage, False Positive Reduction & Fatigue Mitigation — Security Operations & Threat Hunting (SOC)
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)
- Why Secrets Leak — Application Security & Threat Modeling for Engineers
- Container Security: Minimal Bases And Non Root — Application Security & Threat Modeling for Engineers
- Caching Strategies And Topology — Scalable System Design & Distributed Architecture
- Capacity Planning As A Design Input — Scalable System Design & Distributed Architecture
- The Test Pyramid And Where It Is Wrong — Automated Testing, TDD & Quality Engineering
- Integration Testing With Containers — Automated Testing, TDD & Quality Engineering
- Testing With Real Databases — Automated Testing, TDD & Quality Engineering
- Graded On A Machine You Never Touched — RHCE in Ansible (EX294): Automate Red Hat Systems
- ansible-navigator: The Settings File The Exam Reads — RHCE in Ansible (EX294): Automate Red Hat Systems
- Git And VS Code: Clone, Commit, Push, And The Dev Container — RHCE in Ansible (EX294): Automate Red Hat Systems
References
- Docker: what is a container?
- Docker: What is a container?
- AWS: What are containers?
- Docker overview
- NIST SP 800-190: Application Container Security Guide
- Docker docs: Multi-stage builds
Certification courses
- AWS Cloud Practitioner course and practice exam: CLF-C02
- AWS Solutions Architect Associate course and practice exam: SAA-C03
- AZ-104 course and practice exam: Microsoft Azure Administrator
- AZ-900 course and practice exam: Microsoft Azure Fundamentals
- CKAD course and practice exam: Certified Kubernetes Application Developer
- CompTIA Cloud+ course and practice exam: CV0-004
- PCA course and practice exam: Prometheus Certified Associate
- RHCE course and practice exam: Red Hat Certified Engineer in Ansible (EX294)