docker for mac的JSON配置文件中的hosts项修改后无法生效



"hosts": ["tcp://0.0.0.0:2375","unix:///var/run/docker.sock"]
增加了以上配置之后,docker for mac就没法完成重启了,从文档上找到了下面这段话:


The options set in the configuration file must not conflict with options set via flags. The docker daemon fails to start if an option is duplicated between the file and the flags, regardless their value. We do this to avoid silently ignore changes introduced in configuration reloads. For example, the daemon fails to start if you set daemon labels in the configuration file and also set daemon labels via the --label flag. Options that are not present in the file are ignored when the daemon starts.
这段话获取能解释为何无法重启,但没有解答我的疑问。求赐教!
已邀请:

要回复问题请先登录注册