1
0
Эх сурвалжийг харах

Merge pull request #95 from infosiftr/redis

Fix missing COPY, update.sh supported versions
Tianon Gravi 11 жил өмнө
parent
commit
29d35978df

+ 4 - 3
redis/README.md

@@ -56,14 +56,15 @@ You can create your own Dockerfile that adds a redis.conf from the context into
 /data/, like so.
 /data/, like so.
 
 
     FROM redis
     FROM redis
-    redis.conf /data/
-    CMD [ "redis-server", "/data/redis.conf" ]
+    COPY redis.conf /usr/local/etc/redis/redis.conf
+    CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
 
 
 Alternatively, you can specify something along the same lines with `docker run`
 Alternatively, you can specify something along the same lines with `docker run`
 options.
 options.
 
 
-    docker run --volumes-from datacontainer --name myredis redis
+    docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name myredis redis /usr/local/etc/redis/redis.conf
 
 
+Where `/myredis/conf/` is a local directory containing your `redis.conf` file.
 Using this method means that there is no need for you to have a Dockerfile for
 Using this method means that there is no need for you to have a Dockerfile for
 your redis container.
 your redis container.
 
 

+ 4 - 3
redis/content.md

@@ -45,13 +45,14 @@ You can create your own Dockerfile that adds a redis.conf from the context into
 /data/, like so.
 /data/, like so.
 
 
     FROM redis
     FROM redis
-    redis.conf /data/
-    CMD [ "redis-server", "/data/redis.conf" ]
+    COPY redis.conf /usr/local/etc/redis/redis.conf
+    CMD [ "redis-server", "/usr/local/etc/redis/redis.conf" ]
 
 
 Alternatively, you can specify something along the same lines with `docker run`
 Alternatively, you can specify something along the same lines with `docker run`
 options.
 options.
 
 
-    docker run --volumes-from datacontainer --name myredis redis
+    docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name myredis redis /usr/local/etc/redis/redis.conf
 
 
+Where `/myredis/conf/` is a local directory containing your `redis.conf` file.
 Using this method means that there is no need for you to have a Dockerfile for
 Using this method means that there is no need for you to have a Dockerfile for
 your redis container.
 your redis container.