Docker diff 命令

docker diff : 检查容器里文件结构的更改。

语法

  1. docker diff [OPTIONS] CONTAINER

实例

查看容器mymysql的文件结构更改。

  1. test@docker:~$ docker diff mymysql
  2. A /logs
  3. A /mysql_data
  4. C /run
  5. C /run/mysqld
  6. A /run/mysqld/mysqld.pid
  7. A /run/mysqld/mysqld.sock
  8. C /tmp