anapsix/redis
11MB Redis server image over AlpineLinux
3.8K
AlpineLinux-base Docker image with Redis
as Server:
docker run -d --name redis-server -p 6379:6379 -v /data/redis:/var/lib/redis anapsix/redis
as Client:
docker run -it --rm --link redis-server:my-redis-server anapsix/redis redis-cli -h my-redis-server info
docker run -it --rm anapsix/redis redis-cli -h redis-server-ip-or-host.com info
NOTE: You may override default config options by mounting your config as
-v my_redis.conf:/etc/redis.conf
or passing command line arguments to container. You can modify any supported setting with command line arguments except config file location.
You may pass config options via command line, as you normally would (except config file location):
docker run -d -p 6379:6379 \
-v /data/redis:/var/lib/redis \
anapsix/redis --slaveof redismaster.acmecorp.com 6379
or use CONFIG SET to reconfigure it at run time.
See Redis config documentation for details and options: http://redis.io/topics/config
docker pull anapsix/redis