Docker has a number of nifty options to help investigate containers and container images. One option I have used over and over to debug issues is the docker “diff” command. This dumps out the files that have been aded (A), deleted (D) and created(C) since the container started. Here’s a simple example showing diff in action:
$ docker run --rm -it --name centos centos bash
$ touch /tmp/bar /tmp/baz /tmp/foo
↧