summaryrefslogtreecommitdiff
path: root/docs/sources/use/port_redirection.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/sources/use/port_redirection.rst')
-rw-r--r--docs/sources/use/port_redirection.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/sources/use/port_redirection.rst b/docs/sources/use/port_redirection.rst
index 38d6b98841..cf5c2100a9 100644
--- a/docs/sources/use/port_redirection.rst
+++ b/docs/sources/use/port_redirection.rst
@@ -114,21 +114,21 @@ exposure, is possible because ``client`` is started after ``server``
has been started.
Here is a full example. On ``server``, the port of interest is
-exposed. The exposure is done either through the ``-expose`` parameter
+exposed. The exposure is done either through the ``--expose`` parameter
to the ``docker run`` command, or the ``EXPOSE`` build command in a
Dockerfile:
.. code-block:: bash
# 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``:
.. code-block:: bash
# Link
- docker run -name client -link server:linked-server <image> <cmd>
+ docker run --name client --link server:linked-server <image> <cmd>
``client`` locally refers to ``server`` as ``linked-server``. The
following environment variables, among others, are available on