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

增加了以上配置之后,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.