diff --git a/docs/sources/use/basics.rst b/docs/sources/use/basics.rst index d66d5a8bd9..edec214a7f 100644 --- a/docs/sources/use/basics.rst +++ b/docs/sources/use/basics.rst @@ -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)