File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
content/manuals/engine/network Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -234,14 +234,14 @@ $ docker run --network=mynet -p 8080:80 myimage
234234```
235235
236236Then:
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
You can’t perform that action at this time.
0 commit comments