1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

add env hint

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)
This commit is contained in:
Sven Dowideit 2014-03-18 22:29:11 +10:00
parent 3782900405
commit e5cbb5c906

View file

@ -112,8 +112,16 @@ Accessing the network information along with the environment of the
child container allows us to easily connect to the Redis service on
the specific IP and port in the environment.
.. note::
These Environment variables are only set for the first process in
the container. Similarly, some daemons (such as ``sshd``) will
scrub them when spawning shells for connection.
You can work around this by storing the initial ``env`` in a file,
or looking at ``/proc/1/environ``.
Running ``docker ps`` shows the 2 containers, and the ``webapp/db``
alias name for the redis container.
alias name for the Redis container.
.. code-block:: bash