Browse Source

Merge pull request #32723 from alvin319/master

Add examples of storage-opts and log-opts for the daemon
Misty Stanley-Jones 8 years ago
parent
commit
80013fd59a
1 changed files with 13 additions and 0 deletions
  1. 13 0
      docs/reference/commandline/dockerd.md

+ 13 - 0
docs/reference/commandline/dockerd.md

@@ -302,6 +302,19 @@ options for `zfs` start with `zfs` and options for `btrfs` start with `btrfs`.
 
 
 #### Devicemapper options
 #### Devicemapper options
 
 
+This is an example of the configuration file for devicemapper on Linux:
+
+```json
+{
+  "storage-driver": "devicemapper",
+  "storage-opts": [
+    "dm.thinpooldev=/dev/mapper/thin-pool",
+    "dm.use_deferred_deletion=true",
+    "dm.use_deferred_removal=true"
+  ]
+}
+```
+
 ##### `dm.thinpooldev`
 ##### `dm.thinpooldev`
 
 
 Specifies a custom block storage device to use for the thin pool.
 Specifies a custom block storage device to use for the thin pool.