How do you check what's changed inside a running container's filesystem?
BeginnerScenarioVolumes, storage and data
Answer
Situation read → Need to find unexpected writes.
What I'd do →
docker diff web
Output shows A (added), C (changed), D (deleted) paths versus the image.
Why → Reveals what should be a volume or what an attacker modified.
Interview tip → Good for forensics before you destroy the container.
More on Volumes, storage and data
A Postgres container was removed and the data is gone. How should it have been run?BeginnerBind mount or named volume for local development of a Node app?BeginnerHow do you back up a named volume?IntermediateTwo containers must share files. What are your options?BeginnerA container needs a writable temp area but the root filesystem is read-only.IntermediateMoving a database volume from one Docker host to another.Intermediate