瀏覽代碼

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

Signed-off-by: Alvin Deng <alvin.q.deng@utexas.edu>
Alvin Deng 8 年之前
父節點
當前提交
c79bf50ba6
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18 0
      docs/reference/commandline/dockerd.md

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

@@ -302,6 +302,24 @@ options for `zfs` start with `zfs` and options for `btrfs` start with `btrfs`.
 
 #### 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"
+  ],
+  "log-driver": "json-file",
+  "log-opts": {
+    "max-size": "10m",
+    "max-file": "10"
+  }
+}
+```
+
 ##### `dm.thinpooldev`
 
 Specifies a custom block storage device to use for the thin pool.