浏览代码

Update docs so that log-opts takes map (`{}`) instead of `[]`

This fix updates docs so that log-opts takes map (`{}`) instead
of `[]`, as is defined in the impmenetation (`map[string]string`)

This fix fixes 22311.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Yong Tang 9 年之前
父节点
当前提交
f9ef1c892d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/reference/commandline/dockerd.md

+ 1 - 1
docs/reference/commandline/dockerd.md

@@ -1027,7 +1027,7 @@ This is a full example of the allowed configuration options on Linux:
 	"labels": [],
 	"live-restore": true,
 	"log-driver": "",
-	"log-opts": [],
+	"log-opts": {},
 	"mtu": 0,
 	"pidfile": "",
 	"graph": "",