summaryrefslogtreecommitdiff
path: root/devdocs/docker/engine%2Freference%2Fcommandline%2Fdiff%2Findex.html
blob: a99adac78d3f5c690a4486af63e66b41c688e910 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<h1>docker diff</h1>  <p><br></p> <p>Inspect changes to files or directories on a container’s filesystem</p> <h2 id="usage">Usage</h2> <div class="highlight"><pre class="highlight" data-language="">$ docker diff CONTAINER
</pre></div> <h2 id="description">Description</h2> <p name="extended-description">List the changed files and directories in a container᾿s filesystem since the container was created. Three different types of change are tracked:</p> <table> <thead> <tr> <th>Symbol</th> <th>Description</th> </tr> </thead> <tbody> <tr> <td><code class="language-plaintext highlighter-rouge">A</code></td> <td>A file or directory was added</td> </tr> <tr> <td><code class="language-plaintext highlighter-rouge">D</code></td> <td>A file or directory was deleted</td> </tr> <tr> <td><code class="language-plaintext highlighter-rouge">C</code></td> <td>A file or directory was changed</td> </tr> </tbody> </table> <p>You can use the full or shortened container ID or the container name set using <code class="language-plaintext highlighter-rouge">docker run --name</code> option.</p> <p>For example uses of this command, refer to the <a href="#examples">examples section</a> below.</p>  <h2 id="examples">Examples</h2> <p>Inspect the changes to an <code class="language-plaintext highlighter-rouge">nginx</code> container:</p> <div class="highlight"><pre class="highlight" data-language="">$ 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
</pre></div> <div class="_attribution">
  <p class="_attribution-p">
    &copy; 2019 Docker, Inc.<br>Licensed under the Apache License, Version 2.0.<br>Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.<br>Docker, Inc. and other parties may also have trademark rights in other terms used herein.<br>
    <a href="https://docs.docker.com/engine/reference/commandline/diff/" class="_attribution-link">https://docs.docker.com/engine/reference/commandline/diff/</a>
  </p>
</div>