overlay2: layers and copy-on-write
Select an icon to see what it is.
Step 5 of 6
Deleting hides the file with a whiteout
A lower layer cannot be edited, so a delete is recorded in the upper layer as a whiteout: a character device with device number 0/0 and the file's name. overlayfs hides the lower file wherever it sees one.
Upper layer
/var/lib/docker/overlay2/<container>/diff/usr/share/nginx/html/50x.html c--------- 1 root root 0, 0 (whiteout)lower layer copy: still on disk, hidden from the container