From 2c4110402f5c7aac195a73551b8b6b5879ad1d4c Mon Sep 17 00:00:00 2001 From: Will Barnwell Date: Mon, 6 Jul 2015 13:20:11 -0400 Subject: [PATCH 1/2] corrected example run command Added "redis-server" into the example run command to use a custom config file at launch https://github.com/docker-library/official-images/issues/858 --- redis/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/README.md b/redis/README.md index 18a97ef37..426e2079f 100644 --- a/redis/README.md +++ b/redis/README.md @@ -48,7 +48,7 @@ You can create your own Dockerfile that adds a redis.conf from the context into Alternatively, you can specify something along the same lines with `docker run` options. - docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name myredis redis /usr/local/etc/redis/redis.conf + docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name myredis redis redis-server /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 your redis container. From b999561fbc6cc18c3efa19e07151704c7eec0b34 Mon Sep 17 00:00:00 2001 From: Will Barnwell Date: Mon, 6 Jul 2015 16:47:48 -0400 Subject: [PATCH 2/2] Moved 2c4110402f5c7aac195a73551b8b6b5879ad1d4c to content.md Added "redis-server" into the example run command to use a custom config file at launch docker-library/official-images#858 --- redis/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis/content.md b/redis/content.md index 345109cda..55f483321 100644 --- a/redis/content.md +++ b/redis/content.md @@ -40,6 +40,6 @@ You can create your own Dockerfile that adds a redis.conf from the context into Alternatively, you can specify something along the same lines with `docker run` options. - docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name myredis redis /usr/local/etc/redis/redis.conf + docker run -v /myredis/conf/redis.conf:/usr/local/etc/redis/redis.conf --name myredis redis redis-server /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 your redis container.