Browse code

Merge pull request #31291 from albers/docs-daemon-hosts

Clarify why `hosts` in `daemon.json` does not work

Brian Goff authored on 2017/02/24 00:47:26
Showing 1 changed files
... ...
@@ -1208,6 +1208,13 @@ This is a full example of the allowed configuration options on Linux:
1208 1208
 }
1209 1209
 ```
1210 1210
 
1211
+> **Note:** You cannot set options in `daemon.json` that have already been set on
1212
+> daemon startup as a flag.
1213
+> On systems that use `systemd` to start the Docker daemon, `-H` is already set, so
1214
+> you cannot use the `hosts` key in `daemon.json` to add listening addresses.
1215
+> See https://docs.docker.com/engine/admin/systemd/#custom-docker-daemon-options for how
1216
+> to accomplish this task with a systemd drop-in file.
1217
+
1211 1218
 ##### On Windows
1212 1219
 
1213 1220
 The default location of the configuration file on Windows is