Public Repository

Last pushed: 2 years ago
Short Description
This is a image running redis and redis sentinel. automatically running in slave mode when you will run this image with link option to master mode
Full Description

What is daitak/redis

This is a image running redis and redis sentinel.

Automatically running in slave mode, when you will run this image with --link option to master node.

You can remote login to this container with SSH.

Dockerfile is uploaded in github.

https://github.com/daitak/docker_redis

##Sample command of running a container

#Running as Master

docker run -itd -p 2222:22 --name redis01 daitak/redis

#Running as Slave

docker run -itd --link redis01:redis_master -p 2022:22 --name redis02 daitak/redis

#Running as Master with selecting quorum (default quorum is 1)

docker run -itd -p 2222:22 -e SENTINEL_QUORUM=3 --name redis01 daitak/redis

##Sample command of SSH

ssh -p 2222 docker@127.0.0.1

The password of user 'docker' is 'docker'.

Docker Pull Command
Owner
daitak

Comments (0)