Merge pull request #7684 from averagehuman/patch-1

Update usingdocker.md
This commit is contained in:
James Turnbull 2014-08-22 13:16:33 -04:00
commit 6bc773b2c1
1 changed files with 2 additions and 2 deletions

View File

@ -156,9 +156,9 @@ In this case Docker has exposed port 5000 (the default Python Flask
port) on port 49155. port) on port 49155.
Network port bindings are very configurable in Docker. In our last Network port bindings are very configurable in Docker. In our last
example the `-P` flag is a shortcut for `-p 5000` that makes port 5000 example the `-P` flag is a shortcut for `-p 5000` that maps port 5000
inside the container to a high port (from the range 49000 to 49900) on inside the container to a high port (from the range 49000 to 49900) on
the local Docker host. We can also bind Docker container's to specific the local Docker host. We can also bind Docker containers to specific
ports using the `-p` flag, for example: ports using the `-p` flag, for example:
$ sudo docker run -d -p 5000:5000 training/webapp python app.py $ sudo docker run -d -p 5000:5000 training/webapp python app.py