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

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
Will Barnwell 10 лет назад
Родитель
Сommit
b999561fbc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      redis/content.md

+ 1 - 1
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.