Retention for a volume holding uploaded user files.
IntermediateScenarioVolumes, storage and data
Answer
Situation read → Business data must survive host loss.
What I'd do → Move to object storage (S3) with versioning, or replicate volume data via snapshot schedules (EBS, LVM snapshots) and off-host backups. Document RPO/RTO and run restore drills.
Why → A single host volume is a single point of failure.
Interview tip → Ask about RPO/RTO before choosing the design.
More on Volumes, storage and data
A Postgres container was removed and the data is gone. How should it have been run?BeginnerBind mount or named volume for local development of a Node app?BeginnerHow do you back up a named volume?IntermediateTwo containers must share files. What are your options?BeginnerA container needs a writable temp area but the root filesystem is read-only.IntermediateMoving a database volume from one Docker host to another.Intermediate