增加了以上配置之后,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.
這段話或許能解釋為何無法重啟,但沒有解答我的疑問。求賜教!