How do you patch vulnerabilities in running containers?
IntermediateConceptVulnerability Management and Incident Response
Answer
You do not patch in place. Containers are immutable: you rebuild the image on an updated base, rescan, and redeploy through the normal pipeline. apt-get upgrade inside a running pod is lost on restart and leaves the registry image still vulnerable.
To make this routine: pin base images by digest and let Renovate or Dependabot open PRs when the digest changes, rebuild images on a schedule even without code changes, and use continuous registry scanning to flag images running with newly published CVEs.
More on Vulnerability Management and Incident Response
What are the stages of a vulnerability management lifecycle?BeginnerHow do you build a risk-based prioritisation policy for vulnerabilities?IntermediateWhat remediation SLAs are typical by severity?BeginnerHow should a vulnerability exception (risk acceptance) process work?IntermediateDependabot vs Renovate: how do they differ?BeginnerWhat is a vulnerability disclosure program, and how does it differ from a bug bounty?Beginner