2014-04-16 18:07:55 +00:00
|
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-07-01 02:58:04 +00:00
|
|
|
|
% Docker Community
|
|
|
|
|
% JUNE 2014
|
2014-04-16 18:07:55 +00:00
|
|
|
|
# NAME
|
2016-12-22 14:15:01 +00:00
|
|
|
|
docker-diff - Inspect changes to files or directories on a container's filesystem
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
|
|
# SYNOPSIS
|
2014-07-01 02:58:04 +00:00
|
|
|
|
**docker diff**
|
2014-10-15 21:14:12 +00:00
|
|
|
|
[**--help**]
|
2014-07-01 02:58:04 +00:00
|
|
|
|
CONTAINER
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
|
|
# DESCRIPTION
|
2016-12-22 14:15:01 +00:00
|
|
|
|
List the changed files and directories in a container᾿s filesystem since the
|
|
|
|
|
container was created. Three different types of change are tracked:
|
|
|
|
|
|
|
|
|
|
| Symbol | Description |
|
|
|
|
|
|--------|---------------------------------|
|
|
|
|
|
| `A` | A file or directory was added |
|
|
|
|
|
| `D` | A file or directory was deleted |
|
|
|
|
|
| `C` | A file or directory was changed |
|
|
|
|
|
|
|
|
|
|
You can use the full or shortened container ID or the container name set using
|
2014-04-16 18:07:55 +00:00
|
|
|
|
**docker run --name** option.
|
|
|
|
|
|
2014-07-01 02:58:04 +00:00
|
|
|
|
# OPTIONS
|
2014-10-15 21:14:12 +00:00
|
|
|
|
**--help**
|
|
|
|
|
Print usage statement
|
2014-07-01 02:58:04 +00:00
|
|
|
|
|
|
|
|
|
# EXAMPLES
|
2016-12-22 14:15:01 +00:00
|
|
|
|
|
|
|
|
|
Inspect the changes to an `nginx` container:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
$ 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
|
|
|
|
|
```
|
2014-04-16 18:07:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# HISTORY
|
|
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-02 00:30:25 +00:00
|
|
|
|
based on docker.com source material and internal work.
|
2014-07-01 02:58:04 +00:00
|
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|