Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update host-gateway-ip to use daemon.json instead of cli flag #4818

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docs/reference/commandline/dockerd.md
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,9 @@ flag for the dockerd command line interface, or the `host-gateway-ip` key in
the daemon configuration file.

```console
$ dockerd --host-gateway-ip 192.0.2.0
$ cat > /etc/docker/daemon.json
{ "host-gateway-ip": "192.0.2.0" }
dvdksn marked this conversation as resolved.
Show resolved Hide resolved
$ sudo systemctl restart docker
$ docker run -it --add-host host.docker.internal:host-gateway \
busybox ping host.docker.internal
PING host.docker.internal (192.0.2.0): 56 data bytes
Expand Down Expand Up @@ -1072,6 +1074,7 @@ The following is a full example of the allowed configuration options on Linux:
"fixed-cidr": "",
"fixed-cidr-v6": "",
"group": "",
"host-gateway-ip": "",
"hosts": [],
"proxies": {
"http-proxy": "http://proxy.example.com:80",
Expand Down Expand Up @@ -1181,6 +1184,7 @@ The following is a full example of the allowed configuration options on Windows:
"features": {},
"fixed-cidr": "",
"group": "",
"host-gateway-ip": "",
"hosts": [],
"insecure-registries": [],
"labels": [],
Expand Down
Loading