File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
content/manuals/engine/network Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,8 @@ Here are some examples:
160160>
161161> > [! WARNING]
162162> >
163- > > Hosts within the same L2 segment (for example, hosts connected to the same
164- > > network switch) can reach ports published to localhost.
163+ > > In releases older than 28.0.0, hosts within the same L2 segment (for example,
164+ > > hosts connected to the same network switch) can reach ports published to localhost.
165165> > For more information, see
166166> > [moby/moby#45610](https://github.com/moby/moby/issues/45610)
167167
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