From 7bc9a68363a23a2a79928ad176b6cee148fa235d Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 10 Aug 2023 10:18:58 +0200 Subject: [PATCH] engine: update cli yaml Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- _data/engine-cli/docker_run.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_data/engine-cli/docker_run.yaml b/_data/engine-cli/docker_run.yaml index 310c2ac182..5cd1053367 100644 --- a/_data/engine-cli/docker_run.yaml +++ b/_data/engine-cli/docker_run.yaml @@ -1711,8 +1711,9 @@ examples: |- `host-gateway`. Docker Desktop automatically resolves this hostname, see [Explore networking features](/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host). - The following example creates a simple HTTP server that serves a file from the - host to a container. + The following example shows how the special `host-gateway` value works. The + example runs an HTTP server that serves a file from host to container over the + `host.docker.internal` hostname, which resolves to the host's internal IP. ```console $ echo "hello from host!" > ./hello