diff --git a/docs/sources/use/port_redirection.rst b/docs/sources/use/port_redirection.rst index 2612d63aec..437c909bfb 100644 --- a/docs/sources/use/port_redirection.rst +++ b/docs/sources/use/port_redirection.rst @@ -85,7 +85,7 @@ dynamically allocated ports: .. code-block:: bash # Bind to a dynamically allocated port - docker run -p 127.0.0.1::8080 -name dyn-bound + docker run -p 127.0.0.1::8080 --name dyn-bound # Lookup the actual port docker port dyn-bound 8080 @@ -121,7 +121,7 @@ Dockerfile: .. code-block:: bash # Expose port 80 - docker run -expose 80 -name server + docker run -expose 80 --name server The ``client`` then links to the ``server``: