Sign inSign up

gabfl/redis

By gabfl

•Updated over 9 years ago

Stage a Redis instance with multiple versions available

Image
0

639

gabfl/redis repository overview

⁠Builds available

This image contains the following versions of Redis:

  • 2.8.4
  • 3.0.5
  • 3.0.7
  • 3.2.5
  • 3.2.6 (default)
  • 4.0-rc2

By default, Redis will start with a random password shown in stdout.

⁠Starting the default version:

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

⁠Starting a specific version:

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

⁠Disable authentification:

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

⁠Pre-load a dump.rdb

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

⁠Port binding

docker run -p 8379:6379 -ti gabfl/redis

Tag summary

Content type

Image

Digest

Size

252.2 MB

Last updated

over 9 years ago

docker pull gabfl/redis