Merge pull request #2421 from dudebout/patch-1
Fixes the flags for nc in example Upstream-commit: 76afb6e73d70b98654018c51ab9f587336b056ec Component: engine
This commit is contained in:
@ -144,7 +144,7 @@ Expose a service on a TCP port
|
||||
.. code-block:: bash
|
||||
|
||||
# Expose port 4444 of this container, and tell netcat to listen on it
|
||||
JOB=$(sudo docker run -d -p 4444 ubuntu:12.10 /bin/nc -l -p 4444)
|
||||
JOB=$(sudo docker run -d -p 4444 ubuntu:12.10 /bin/nc -l 4444)
|
||||
|
||||
# Which public port is NATed to my container?
|
||||
PORT=$(sudo docker port $JOB 4444)
|
||||
|
||||
Reference in New Issue
Block a user