Skip to content

Commit 9424752

Browse files
committed
Update text about direct routing
Since 28.0.0, direct access to container ports from outside the host has been blocked. Signed-off-by: Rob Murray <[email protected]>
1 parent 8d9f59c commit 9424752

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/manuals/engine/network/packet-filtering-firewalls.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,14 +234,14 @@ $ docker run --network=mynet -p 8080:80 myimage
234234
```
235235

236236
Then:
237-
- Only container port 80 will be open, for IPv4 and IPv6. It is accessible
238-
from anywhere, if there is routing to the container's address, and access
239-
is not blocked by the host's firewall.
237+
- Only container port 80 will be open, for IPv4 and IPv6.
240238
- For IPv6, using `routed` mode, port 80 will be open on the container's IP
241239
address. Port 8080 will not be opened on the host's IP addresses, and
242240
outgoing packets will use the container's IP address.
243241
- For IPv4, using the default `nat` mode, the container's port 80 will be
244-
accessible via port 8080 on the host's IP addresses, as well as directly.
242+
accessible via port 8080 on the host's IP addresses, as well as directly
243+
from within the Docker host. But, container port 80 cannot be accessed
244+
directly from outside the host.
245245
Connections originating from the container will masquerade, using the
246246
host's IP address.
247247

0 commit comments

Comments
 (0)