我需要编辑我的 docker 守护进程的配置,并且从我正在阅读的内容中有 2(?)我“可以”使用?
一条路径:
C:\ProgramData\Docker\config\daemon.json
其他路径:
C:\Program Files\Docker\Docker\resources\windows-daemon-options.json
第一个问题:
windows-daemon-options.json
已经存在并且其中有数据(更多内容见下文)daemon.json
不存在;我必须创建它
所以,我是只编辑,windows-daemon-options.json
还是创建daemon.json
? 或者我是否将所有设置从前者复制/粘贴到后者,编辑我需要的内容,然后在启动时它将使用常规daemon.json
作为首选配置(有点好像前者是示例配置)?
第二个问题:
中的数据windows-daemon-options.json
有很多“编辑”,我想知道所有这些数字是如何构成的?
即这是其中的数据(字面意思):
{
"allow-nondistributable-artifacts": ["host_port_or_cidr|redacted"],
"authorization-plugins": [],
"bridge": "",
"cluster-advertise": "",
"cluster-store": "",
"data-root": "path|redacted",
"debug": true,
"default-ulimits": {},
"disable-legacy-registry": false,
"dns": ["ip|redacted"],
"dns-opts": [],
"dns-search": ["domain|redacted"],
"exec-opts": [],
"experimental": true,
"fixed-cidr": "redacted",
"graph": "deprecated|redacted",
"group": "",
"hosts": ["endpoint|redacted"],
"insecure-registries": ["host_port_or_cidr|redacted"],
"labels": [],
"live-restore": true,
"log-driver": "",
"log-level": "",
"max-concurrent-downloads": 3,
"max-concurrent-uploads": 5,
"metrics-addr":"endpoint|redacted",
"mtu": 0,
"pidfile": "redacted",
"raw-logs": false,
"registry-mirrors": ["registry|redacted"],
"shutdown-timeout": 15,
"storage-driver": "",
"storage-opts": [],
"swarm-default-advertise-addr": "endpoint|redacted",
"tlscacert": "redacted",
"tlscert": "redacted",
"tlskey": "redacted",
"tlsverify": true
}
希望我能够清楚地表达我的问题。