Public | Automated Build

Last pushed: 2 months ago
Short Description
11MB Redis server image over AlpineLinux
Full Description

Redis in a box

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 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 6379

or use CONFIG SET to reconfigure it at run time.

See Redis config documentation for details and options:

Docker Pull Command
Source Repository