Просмотр исходного кода

Env Clarification

Clarified that the env variables here are an example output of env. The user should not set them to the example values.

Docker-DCO-1.1-Signed-off-by: Matthias Kühnle <git.nivoc@neverbox.com> (github: float64)
Matthias Kühnle 11 лет назад
Родитель
Сommit
a7f1b74dd8
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      docs/sources/examples/running_redis_service.rst

+ 4 - 3
docs/sources/examples/running_redis_service.rst

@@ -68,13 +68,14 @@ Once inside our freshly created container we need to install Redis to get the
     service redis-server stop
     service redis-server stop
 
 
 Now we can test the connection. Firstly, let's look at the available environmental 
 Now we can test the connection. Firstly, let's look at the available environmental 
-variables in our web application container. We can use these to get the IP and port 
+variables in our web application container that docker has setup for us. We can use these to get the IP and port 
 of our ``redis`` container.
 of our ``redis`` container.
 
 
 .. code-block:: bash
 .. code-block:: bash
 
 
-    env
-    . . .
+    env | grep DB_
+    
+    # Should return something similar to this with your values 
     DB_NAME=/violet_wolf/db
     DB_NAME=/violet_wolf/db
     DB_PORT_6379_TCP_PORT=6379
     DB_PORT_6379_TCP_PORT=6379
     DB_PORT=tcp://172.17.0.33:6379
     DB_PORT=tcp://172.17.0.33:6379