Browse code

add an example of what to expect from docker diff, and what the 3 codes mean

Sven Dowideit authored on 2013/11/16 19:26:47
Showing 1 changed files
... ...
@@ -231,9 +231,33 @@ Full -run example
231 231
 
232 232
 ::
233 233
 
234
-    Usage: docker diff CONTAINER [OPTIONS]
234
+    Usage: docker diff CONTAINER
235
+ 
236
+    List the changed files and directories in a container's filesystem
235 237
 
236
-    Inspect changes on a container's filesystem
238
+There are 3 events that are listed in the 'diff':
239
+
240
+1. ```A``` - Add
241
+2. ```D``` - Delete
242
+3. ```C``` - Change
243
+
244
+for example:
245
+
246
+.. code-block:: bash
247
+
248
+	$ sudo docker diff 7bb0e258aefe
249
+
250
+	C /dev
251
+	A /dev/kmsg
252
+	C /etc
253
+	A /etc/mtab
254
+	A /go
255
+	A /go/src
256
+	A /go/src/github.com
257
+	A /go/src/github.com/dotcloud
258
+	A /go/src/github.com/dotcloud/docker
259
+	A /go/src/github.com/dotcloud/docker/.git
260
+	....
237 261
 
238 262
 .. _cli_events:
239 263