Image layers, writable state and copy-up
medium 7 minA container image supplies read-only lower layers.
Where it shows up
The same pattern appears across everyday software.
A one-byte edit copies a large file
A startup script updates a small field in a large prebuilt file. Fresh containers show slow first writes and increased node disk usage, while later edits are fast. Compare upper-layer growth before and after the first edit. Separate mutable state into a suitably sized volume or a small independent file and repeat on a fresh instance.
Verifying the intervention
Keep the edited field in a small mutable file and compare first-write work. If later edits cost just as much, the steady-state storage path may dominate over the initial copy-up.