content/manuals/dhi/core-concepts/immutability.md
Immutable infrastructure is a security and operations model where components such as servers, containers, and images are never modified after deployment. Instead of patching or reconfiguring live systems, you replace them entirely with new versions.
When using Docker Hardened Images, immutability is a best practice that reinforces the security posture of your software supply chain.
Mutable systems are harder to secure and audit. Live patching or manual updates introduce risks such as:
Immutable infrastructure solves this by making changes only through controlled, repeatable builds and deployments.
Docker Hardened Images are built to be minimal, locked-down, and non-interactive, which discourages in-place modification. For example:
This design aligns with immutable practices and ensures that:
Some common patterns that leverage immutability include:
By combining immutable infrastructure principles with hardened images, you create a predictable and secure deployment workflow that resists tampering and minimizes long-term risk.