A team wants containers on a Linux host but you need to keep the host OS minimal and stable. How do you set up the host?
IntermediateScenarioMigrations, performance and fleet operations
Answer
Situation read → Container host baseline.
What I'd do →
- Minimal OS install (or a container-optimised OS such as Bottlerocket, Flatcar or Fedora CoreOS).
- Install only the runtime (containerd/Docker or Podman), monitoring and logging agents.
- Put
/var/lib/containerdor/var/lib/dockeron its own volume. - cgroup v2, SELinux/AppArmor enforcing,
user namespacesor rootless where possible. - Automate OS updates with reboots via a drain process.
Why → Fewer packages mean fewer patches and less drift; separate storage stops image bloat filling root.
Interview tip → Mention immutable OS options and why they suit container hosts.
More on Migrations, performance and fleet operations
You must migrate 2 TB of application data from an old server to a new one with less than 5 minutes of downtime. How?IntermediateThe new server has different UIDs for the same users than the old one. What breaks during migration and how do you handle it?IntermediateA server is "slow" according to users. What is your first 60 seconds of investigation?BeginnerYour team must capacity-plan for a server whose disk grows 4% per week. How do you predict when it fills?IntermediateYou need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.IntermediateMemory usage on a server shows 95% used but the app is fine. A manager is worried. How do you explain and verify?Beginner