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

Merge pull request #4758 from crosbymichael/redis-bind

Be explicit about binding to all interfaces in redis example
Sven Dowideit 11 лет назад
Родитель
Сommit
9bbc11b2ae
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      docs/sources/examples/running_redis_service.rst

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

@@ -18,11 +18,11 @@ Firstly, we create a ``Dockerfile`` for our new Redis image.
 
 
 .. code-block:: bash
 .. code-block:: bash
 
 
-    FROM        ubuntu:12.10
-    RUN         apt-get update
-    RUN         apt-get -y install redis-server
+    FROM        debian:jessie
+    RUN         apt-get update && apt-get install -y redis-server
     EXPOSE      6379
     EXPOSE      6379
     ENTRYPOINT  ["/usr/bin/redis-server"]
     ENTRYPOINT  ["/usr/bin/redis-server"]
+    CMD ["--bind", "0.0.0.0"]
 
 
 Next we build an image from our ``Dockerfile``. Replace ``<your username>`` 
 Next we build an image from our ``Dockerfile``. Replace ``<your username>`` 
 with your own user name.
 with your own user name.