Skip to content

Commit 06b5db9

Browse files
committed
docs: update host-gateway-ip to use daemon.json instead of cli flag
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
1 parent c89975d commit 06b5db9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/reference/commandline/dockerd.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,9 @@ flag for the dockerd command line interface, or the `host-gateway-ip` key in
849849
the daemon configuration file.
850850

851851
```console
852-
$ dockerd --host-gateway-ip 192.0.2.0
852+
$ cat > /etc/docker/daemon.json
853+
{ "host-gateway-ip": "192.0.2.0" }
854+
$ sudo systemctl restart docker
853855
$ docker run -it --add-host host.docker.internal:host-gateway \
854856
busybox ping host.docker.internal
855857
PING host.docker.internal (192.0.2.0): 56 data bytes

0 commit comments

Comments
 (0)