Key takeaway
- Containers in DevOps explained for 2027: OCI images, Docker, containerd, Kubernetes, image signing, SBOMs, CI/CD, limits and agent-built image governance.
Containers in DevOps are the packaging and runtime unit that lets a team build an application once, as an image, and run the same artefact in development, test and production. In 2026 their role is wider than portability: the image is the artefact that CI/CD builds, signs, scans, promotes and rolls back, so it is also the point where delivery speed and supply-chain control meet. They are not required for DevOps, which rests on practices such as automation and continuous integration; see our guide to DevOps processes.
This guide covers how containers work, where Docker, containerd and Kubernetes fit, what image signing and SBOMs add, how container-native CI/CD runs, when containers are the wrong choice, and how to govern images that AI agents build.
What is a container, and how does it differ from a virtual machine?
A container packages an application with its libraries and configuration and runs it as an isolated process on a shared host kernel. According to the Docker docs, an image is a read-only template with the instructions for creating a container, and a container is a runnable instance of an image; isolation comes from Linux kernel namespaces. A virtual machine instead carries a full guest operating system on top of a hypervisor. Containers therefore start faster and pack more densely, while a VM gives stronger isolation between tenants because it does not share a kernel.
| Aspect | Container | Virtual machine |
|---|---|---|
| Isolation unit | Process with its own namespaces, shared host kernel | Full guest operating system on a hypervisor |
| What you ship | Image (layers plus configuration) | VM image with operating system |
| Best fit | Microservices, stateless services, CI jobs, batch work | Strong tenant isolation, different kernels, legacy workloads |
| Main risk | Shared kernel, image supply chain | Patching and sprawl of many guest operating systems |
What do OCI images, Docker and containerd each do?
Three layers are often confused. The Open Container Initiative defines open specifications: a runtime specification, an image specification and a distribution specification, so images built by one tool can run and be distributed by another. containerd is an industry-standard runtime that, according to its site, manages the full container lifecycle on a host, including image transfer and storage and container execution, and has been a graduated CNCF project since 28 February 2019. Docker is the developer toolchain around this: the Docker docs describe a daemon (dockerd), a client and a REST API between them.
| Layer | What it does | Why a DevOps team cares |
|---|---|---|
| OCI specifications | Standard image, runtime and distribution formats | No lock-in to one builder or registry |
| containerd and runC | Pull images, create and supervise containers on a node | The runtime most clusters actually run |
| Docker Engine and CLI | Build, run and push images from a laptop or CI agent | Familiar developer workflow and Dockerfile |
| Kubernetes | Schedules and manages containers across many nodes | Scaling, rollouts and recovery at fleet level |
How does Kubernetes orchestration fit into a DevOps pipeline?
One host is easy; fifty services on many hosts are not. The Kubernetes documentation describes Kubernetes as a portable, extensible, open source platform for managing containerised workloads and services, with declarative configuration and automation. In a pipeline the image is built and pushed by CI, and the cluster is told the desired state (a Deployment manifest or a GitOps repository). The cluster then handles scheduling, rolling updates and restarts. Its documentation also covers the Container Runtime Interface and a migration path from dockershim to CRI runtimes such as containerd, so a cluster does not need Docker Engine on its nodes. For component-level detail, read Kubernetes architecture components.
How do image signing and SBOMs secure the container supply chain?
The image is the artefact an attacker would like to tamper with, so the pipeline should prove what it built. Three open building blocks cover this. Sigstore signs and verifies artefacts including container images; its documentation describes keyless signing with short-lived certificates and a public transparency log. An SBOM lists the components inside an image, and SPDX is an open standard for it, recognised as ISO/IEC 5962:2021. SLSA gives graded guidelines for build integrity; its v1.0 specification has a Build track with Levels 1 to 3 and treats provenance as tamper-resistant evidence of how an artefact was built.
In practice, the Docker build attestations documentation says BuildKit can attach SBOM and provenance attestations to the image at build time, using the in-toto format, and that provenance attestations in min mode are added by default. A sensible rule for the admission step is simple: the cluster only runs images that are signed by your pipeline and that have an SBOM attached. For wider hardening see our posts on container security and Kubernetes security automation.
What does container-native CI/CD look like?
DORA defines continuous delivery as the ability to release changes of all kinds on demand, quickly, safely and sustainably, and lists test automation, deployment automation and pervasive security among the practices. Containers help because the same image moves through every stage. A typical sequence is below.
| Stage | What happens | Exit check |
|---|---|---|
| Build | CI builds the image from a Dockerfile in a clean runner | Reproducible build, tagged by commit |
| Test | Unit and integration tests run inside the image or against it | Tests pass on the exact artefact |
| Scan and attest | Vulnerability scan, SBOM and provenance attached | No blocking findings; SBOM present |
| Sign and push | Image signed and pushed to a registry by digest | Signature verifies |
| Deploy | GitOps or pipeline updates the cluster declaratively | Admission policy accepts only signed digests |
| Observe and roll back | Health and metrics checked; roll back to previous digest on failure | Rollback tested before go-live |
DORA also notes a common pitfall: deploying more often without redesigning processes and architecture tends to raise failure rates and burn out teams. Containers speed up the mechanics; they do not replace the practices.
When are containers the wrong choice?
Containers are a means, not a goal. Use the table as a decision rule before containerising a workload.
| Situation | Why containers may not fit | Better option to consider |
|---|---|---|
| Small, stable application on one server | Orchestration and registry add running cost with little gain | Plain deployment or a managed platform service |
| Legacy monolith with hard OS dependencies | Repackaging may need code changes and gives little benefit | Rehost on virtual machines first; refactor later |
| Strong isolation between untrusted tenants | Containers share the host kernel | Virtual machines or sandboxed runtimes |
| Heavily stateful systems with strict storage needs | Persistent storage and recovery need careful design (data written inside a container is lost when it is removed, per Docker docs) | Managed database services or operators |
| Team without delivery basics | Containers do not fix missing automation or testing | Start with CI and automated tests |
How should you govern container images that AI agents build?
Coding agents now write Dockerfiles, pick base images and open pull requests that change deployment manifests. Treat an agent like any other contributor whose output reaches production through the same gates, and add controls for the new risk: an agent can pull an unvetted base image or add a package no one reviewed.
| Control | What it enforces | Evidence it leaves |
|---|---|---|
| Approved base images | Agents may only build from an allow-listed registry | Policy log of allowed and denied builds |
| SBOM and provenance on every build | Every image lists its components and how it was built | Attestation attached to the digest |
| Signing by the pipeline, not the agent | Only the CI identity can sign; agents cannot self-approve | Signature and certificate identity |
| Human approval for production | A named owner approves promotion of agent-authored changes | Approval record tied to the commit |
| Decision trace | Why the agent chose a base image or version is recorded | Reviewable trace per change |
ElixirClaw is, according to its site, an agentic OS platform to build, orchestrate and govern AI agents and automation workflows while keeping humans in control. ElixirData Context OS keeps governed context, versioned policy and decision traces in one decision layer above AI agents, and Elixir Govern (formerly AgentGRC) keeps autonomous agent actions inside policy, with the audit trail risk teams need.
What are the benefits and trade-offs of containers in DevOps?
| Benefit | Trade-off to plan for |
|---|---|
| Same artefact in every environment, so fewer works-on-my-machine failures | Image sprawl and stale base images need ownership |
| Fast, repeatable deployments and rollbacks by digest | Cluster operations add skills and cost |
| Good fit for microservices and batch jobs | More services means more monitoring and alerting |
| Open standards (OCI) reduce lock-in | Shared kernel needs hardening and runtime policy |
Typical use cases are microservices, platform building, batch processing and CI/CD. If you want a managed route, see Container as a Service.
How do you adopt containers in an enterprise?
Start with one stateless service and a pilot pipeline. Exit check: the same digest runs in test and production and can be rolled back. Next, add scanning, SBOMs and signing, with an admission policy that rejects unsigned images. Then standardise base images and a registry, move to a managed or self-run Kubernetes service, and add observability. Finally, extend the same gates to agent-authored changes. Roll out in phases and keep an owner for every image.
To map one delivery decision your agents should make, and the context and policy it depends on, book a Context Workshop. See what happens in the workshop.
What should you plan for in 2027?
If your team ships containerised software to customers in the European Union, one regulation sets the calendar.
- 11 September 2026. The European Commission's Cyber Resilience Act page says reporting obligations apply from this date, when manufacturers must report actively exploited vulnerabilities.
- 11 December 2027. The same page says the main obligations of the Act will apply from 11 December 2027.
- What to do now. Check whether your products fall in scope, then keep an owner for every image, a record of what each image contains and a signed, traceable build pipeline, as set out above.
Frequently asked questions
Are containers necessary for DevOps?
No. DevOps rests on practices such as automation, continuous integration and fast feedback; containers add consistency and portability but are not required.
What is the difference between Docker and containerd?
Docker is the developer toolchain (client, daemon and Dockerfile workflow). containerd is a runtime that manages the container lifecycle on a host and is a graduated CNCF project, per its site.
What is an OCI image?
An image built to the Open Container Initiative image specification, so that any compliant runtime or registry can use it.
Why sign container images and keep an SBOM?
Signing proves which pipeline built an image, and an SBOM lists its components, so a cluster can reject unknown images and teams can find affected images when a vulnerability is announced.
When should you not use containers?
For small stable applications, legacy monoliths with hard OS dependencies, workloads needing kernel-level isolation between untrusted tenants, or teams that lack basic CI and testing.
How do you govern images built by AI agents?
Allow-list base images, require SBOM and provenance on every build, let only the pipeline sign, require human approval for production and keep a decision trace.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE