Merge pull request #271 from mut3/master
corrected example run command in redis README
This commit is contained in:
commit
88340bac01
|
|
@ -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.
|
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.
|
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.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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.
|
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.
|
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.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue