Skip to main content
InterviewHubPRO
Section Overview
Q37

Question 37 of 50

Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

74%
Docker & Containers (50 Qs)•Part 3: Advanced Internals, Scale & Production Security (Senior / Lead)

OverlayFS Storage Driver: Copy-on-Write (CoW) Architecture.

senior LevelMost AskedSecurity & AuthSystem Design

In Simple Words: Docker uses OverlayFS to layer read-only image layers into a single unified filesystem:

  • lowerdir: Read-only base image layers stacked on top of each other.
  • upperdir: Read-write layer unique to the running container.
  • merged: Unified mount directory presented to the container process.
  • Copy-on-Write (CoW): When a container modifies an existing image file, OverlayFS copies the file from the lower read-only layer up to the upper read-write layer before modifying it, ensuring base images remain 100% immutable and shareable across containers.