Browse code

Add examples of storage-opts and log-opts for the daemon

Signed-off-by: Alvin Deng <alvin.q.deng@utexas.edu>

Alvin Deng authored on 2017/04/20 06:35:04
Showing 1 changed files
... ...
@@ -302,6 +302,24 @@ options for `zfs` start with `zfs` and options for `btrfs` start with `btrfs`.
302 302
 
303 303
 #### Devicemapper options
304 304
 
305
+This is an example of the configuration file for devicemapper on Linux:
306
+
307
+```json
308
+{
309
+  "storage-driver": "devicemapper",
310
+  "storage-opts": [
311
+    "dm.thinpooldev=/dev/mapper/thin-pool",
312
+    "dm.use_deferred_deletion=true",
313
+    "dm.use_deferred_removal=true"
314
+  ],
315
+  "log-driver": "json-file",
316
+  "log-opts": {
317
+    "max-size": "10m",
318
+    "max-file": "10"
319
+  }
320
+}
321
+```
322
+
305 323
 ##### `dm.thinpooldev`
306 324
 
307 325
 Specifies a custom block storage device to use for the thin pool.