https://github.com/anapsix/docker-redis
Docker image for Redis Server over AlpineLinux
https://github.com/anapsix/docker-redis
Last synced: 3 months ago
JSON representation
Docker image for Redis Server over AlpineLinux
- Host: GitHub
- URL: https://github.com/anapsix/docker-redis
- Owner: anapsix
- Created: 2015-07-10T14:02:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-19T22:24:37.000Z (over 9 years ago)
- Last Synced: 2025-01-24T20:18:26.292Z (4 months ago)
- Language: Shell
- Size: 605 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Redis in a box
AlpineLinux-base Docker image with Redis
[](https://imagelayers.io/?images=anapsix/redis:latest)
## Usage
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**.
## Configuration
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 6379or use [CONFIG SET](http://redis.io/commands/config-set) to reconfigure it at run time.
> See Redis config documentation for details and options: [http://redis.io/topics/config](http://redis.io/topics/config)