Public Repository

Last pushed: 6 months ago
Short Description
Short description is empty for this repo.
Full Description

Redis base image

redis.conf file

port 6379
cluster-enabled no
cluster-config-file nodes.conf
cluster-node-timeout 5000
appendonly yes

Start the redis container

$ sudo docker run --name redis_quick_start -p 6379:6379 -d mccstanmbg/redis
94b22d08526806381e5bcb816cca96195e6873f26f76e90a701ee02b81698517

Connect to the redis instance and play with.

From outside, using redis-cli

$ redis-cli -p 6379
127.0.0.1:6379>

OR Using a container link and redis-cli

$ sudo docker run -it --link redis_quick_start:redis --rm redis redis-cli -h redis -p 6379
redis:6379>
redis:6379> set key value
OK
redis:6379> get key
"value"
redis:6379> set users.ksana "{name:SANA, age:26}"
redis:6379> set users.mccstan "{name:BADO, age:24}"
redis:6379> get users.mccstan
"{name:BADO, age:24}"
redis:6379> get users.ksana
"{name:SANA, age:26}"
Docker Pull Command
Owner
mccstanmbg

Comments (0)