Copy-on-Write

1 / 12

A base image is eight megabytes. Run fifty containers from it and you do not want fifty copies — and you certainly do not want one container's rm -rf / to damage the image the other forty-nine are using.

The answer is copy-on-write: every container gets what looks like its own private copy, but blocks are only duplicated at the moment something writes to them. Creating one is instant and costs nothing until it is used.

Finish →