mirror of
https://github.com/docker/cli.git
synced 2026-01-18 08:21:31 +03:00
Clarify why hosts in daemon.json does not work
Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: e66bc57039
Component: cli
This commit is contained in:
committed by
Tibor Vass
parent
dba622ebee
commit
1e8d9e0c5e
@@ -1208,6 +1208,13 @@ This is a full example of the allowed configuration options on Linux:
|
||||
}
|
||||
```
|
||||
|
||||
> **Note:** You cannot set options in `daemon.json` that have already been set on
|
||||
> daemon startup as a flag.
|
||||
> On systems that use `systemd` to start the Docker daemon, `-H` is already set, so
|
||||
> you cannot use the `hosts` key in `daemon.json` to add listening addresses.
|
||||
> See https://docs.docker.com/engine/admin/systemd/#custom-docker-daemon-options for how
|
||||
> to accomplish this task with a systemd drop-in file.
|
||||
|
||||
##### On Windows
|
||||
|
||||
The default location of the configuration file on Windows is
|
||||
|
||||
Reference in New Issue
Block a user