advancedTop 100 Interview Questions
What is copy-on-write, and how does it apply to containers?
Copy-on-write means a container doesn't copy the entire image filesystem at startup; instead it adds one thin writable layer on top of the shared read-only image layers, and only copies a file up to that writable layer the moment it's modified. This is why container startup is fast and many containers can share one image's layers efficiently.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response