docker diff

Lists the files a container has added (A), changed (C) or deleted (D) compared with its image.

In more detail

It shows exactly what is in the container writable layer, which is useful for spotting a program writing where it should not. Paths are listed relative to the container root, and a D entry is recorded as a whiteout, not a real removal from the image.

Example

docker diff note-two

Related terms

Taught in

References