# Layering & Copy-on-Write

> How do Docker image layers and the Copy-on-Write (CoW) mechanism work, and what are the practical consequences?

Canonical: https://www.internhack.in/learn/interview/docker-containers/docker-storage-layers-copy-on-write
Last updated: 2026-11-28

Difficulty: Advanced

## Question

How do Docker image layers and the Copy-on-Write (CoW) mechanism work, and what are the practical consequences?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Image layers, Copy-on-Write, OverlayFS, overlay2, Whiteout files

Previous: [Troubleshooting & Logs](https://www.internhack.in/learn/interview/docker-containers/docker-logs-troubleshooting) · Next: [.dockerignore](https://www.internhack.in/learn/interview/docker-containers/docker-ignore-file) · [All of Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)

## More Docker & Containers questions

- [Exec Form vs. Shell Form](https://www.internhack.in/learn/interview/docker-containers/docker-exec-vs-shell-form)
- [Bind Mount Permissions](https://www.internhack.in/learn/interview/docker-containers/docker-bind-mount-permissions)
- [Cleanup Commands](https://www.internhack.in/learn/interview/docker-containers/docker-prune-cleanup)
- [Restart Policies](https://www.internhack.in/learn/interview/docker-containers/docker-container-restart-policy)
- [Inspecting Network](https://www.internhack.in/learn/interview/docker-containers/docker-inspect-network)
- [ARG vs. ENV](https://www.internhack.in/learn/interview/docker-containers/docker-build-args-vs-env)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Docker & Containers](https://www.internhack.in/learn/interview/docker-containers)
