docker diff命令-较一个容器不同版本提交的文件差异

diff 用于比较一个容器不同版本提交的文件差异

列出修改过的文件

Usage: docker diff CONTAINER


Inspect changes on a container's filesystem

指定3中事件来比对 diff:

  1. A - Add
  2. D - Delete
  3. C - Change

For example:

$ sudo docker diff 7bb0e258aefe


C
/dev
A
/dev/kmsg
C
/etc
A
/etc/mtab
A
/go
A
/go/src
A
/go/src/github.com
A
/go/src/github.com/dotcloud
A
/go/src/github.com/dotcloud/docker
A
/go/src/github.com/dotcloud/docker/.git
....