Browse Source

Fix name parameter

Docker-DCO-1.1-Signed-off-by: Victor Vieux <victor.vieux@docker.com> (github: vieux)
Victor Vieux 11 years ago
parent
commit
476c290b07
1 changed files with 2 additions and 2 deletions
  1. 2 2
      docs/sources/use/port_redirection.rst

+ 2 - 2
docs/sources/use/port_redirection.rst

@@ -85,7 +85,7 @@ dynamically allocated ports:
 .. code-block:: bash
 .. code-block:: bash
 
 
    # Bind to a dynamically allocated port
    # Bind to a dynamically allocated port
-   docker run -p 127.0.0.1::8080 -name dyn-bound <image> <cmd>
+   docker run -p 127.0.0.1::8080 --name dyn-bound <image> <cmd>
 
 
    # Lookup the actual port
    # Lookup the actual port
    docker port dyn-bound 8080
    docker port dyn-bound 8080
@@ -121,7 +121,7 @@ Dockerfile:
 .. code-block:: bash
 .. code-block:: bash
 
 
     # Expose port 80
     # Expose port 80
-    docker run -expose 80 -name server <image> <cmd>
+    docker run -expose 80 --name server <image> <cmd>
 
 
 The ``client`` then links to the ``server``:
 The ``client`` then links to the ``server``: