mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #10428 from mehulkar/patch-1
Improve explanation of port mapping from containers
This commit is contained in:
commit
9e10a888a3
1 changed files with 3 additions and 2 deletions
|
@ -167,8 +167,9 @@ host. You might be asking about now: why wouldn't we just want to always
|
|||
use 1:1 port mappings in Docker containers rather than mapping to high
|
||||
ports? Well 1:1 mappings have the constraint of only being able to map
|
||||
one of each port on your local host. Let's say you want to test two
|
||||
Python applications: both bound to port 5000 inside your container.
|
||||
Without Docker's port mapping you could only access one at a time.
|
||||
Python applications: both bound to port 5000 inside their own containers.
|
||||
Without Docker's port mapping you could only access one at a time on the
|
||||
Docker host.
|
||||
|
||||
So let's now browse to port 49155 in a web browser to
|
||||
see the application.
|
||||
|
|
Loading…
Reference in a new issue