Interview Prep/Docker/Volumes, storage and data

Sensitive data in a volume must be encrypted at rest.

AdvancedScenarioVolumes, storage and data
Answer

Situation read → Docker volumes are plain directories.

What I'd do → Encrypt below Docker: LUKS on the disk that holds /var/lib/docker or the volume path, or cloud-provider encrypted block storage (EBS with KMS). For app-level secrets use envelope encryption in the app or database TDE.

Why → Docker itself has no volume encryption feature.

Interview tip → Also mention key management: who unlocks LUKS on reboot.

All Docker questions Roadmap: Docker & containers

More on Volumes, storage and data