Stage a Redis instance with multiple versions available
639
This image contains the following versions of Redis:
By default, Redis will start with a random password shown in stdout.
docker run -ti gabfl/redis
# * Server bind:
# 172.17.0.2:6379
# * Auth:
# N8CT5lTil2vK17ET
# * Redis CLI:
# /opt/redis-3.2.6/src/redis-cli -h 172.17.0.2 -p 6379 -a N8CT5lTil2vK17ET
docker run -e V="2.8.4" -ti gabfl/redis
# * Server bind:
# 172.17.0.2:6379
# * Auth:
# DcK0gq8nFyTOcGD2
# * Redis CLI:
# /opt/redis-2.8.4/src/redis-cli -h 172.17.0.2 -p 6379 -a DcK0gq8nFyTOcGD2
docker run -e NO_PASS="1" -ti gabfl/redis
# * Server bind:
# 172.17.0.2:6379
# * Auth:
#
# * Redis CLI:
# /opt/redis-3.2.6/src/redis-cli -h 172.17.0.2 -p 6379
The image will automatically load a dump.rdb if it is located in /opt/dump/dump.rdb
You can transfer a dump.rdb from your disk with:
# Option 1: mount to /opt/mnt/ and dump.rdb will be copied...
# to /opt/dump/dump.rdb so that the original file is preserved:
run -v ~path/to/dump/:/opt/mnt/ -ti gabfl/redis
# Option 2: mount to /opt/dump/ and dump.rdb will be loaded...
# from the mounted disk (any modification will be saved in the original file):
run -v ~path/to/dump/:/opt/dump/ -ti gabfl/redis
docker run -p 8379:6379 -ti gabfl/redis
Content type
Image
Digest
Size
252.2 MB
Last updated
over 9 years ago
docker pull gabfl/redis