1、docker diff 简介
docker diff
是用来检查容器文件系统上的文件或目录的更改。列出自创建容器以来容器᾿s文件系统中更改的文件和目录。
三种不同类型的变更:
符号 | 描述 |
A | 添加文件或目录 |
D | 文件或目录被删除 |
C | 文件或目录被更改 |
2、docker diff 语法
docker diff CONTAINER
参考文档:https://docs.docker.com/engine/reference/commandline/diff/
3、docker diff 命令
查看nginx容器的更改
docker diff 1fdfd1f54c1b C /dev C /dev/console C /dev/core C /dev/stdout C /dev/fd C /dev/ptmx C /dev/stderr C /dev/stdin C /run A /run/nginx.pid C /var/lib/nginx/tmp A /var/lib/nginx/tmp/client_body A /var/lib/nginx/tmp/fastcgi A /var/lib/nginx/tmp/proxy A /var/lib/nginx/tmp/scgi A /var/lib/nginx/tmp/uwsgi C /var/log/nginx A /var/log/nginx/access.log A /var/log/nginx/error.log