A test image of redis that requires authentication.
2.6K
A Dockerfile that produces a Docker Image for Redis based on official redis container.
The master branch currently hosts Redis 2.8.
To create the image sinet/redis:2.8, execute the following command on the docker-redis/2.8 folder:
$ docker build -t sinet/redis:2.8 .
To run the image and bind to host port 6379:
$ docker run -d --name sinet-redis -p 6379:6379 sinet/redis:2.8
If you want to preset credentials you can set the following environment variables:
REDIS_PASSWORD to set a specific password$ docker run -d \
--name sinet-redis \
-p 6379:6379 \
-e REDIS_PASSWORD=mypassword \
sinet/redis:2.8
When you run the container, it will start the Redis server without any arguments. If you want to pass any arguments,
just add them to the run command:
$ docker run -d --name sinet-redis -p 6379:6379 sinet/redis:2.8 --loglevel debug
Content type
Image
Digest
Size
68.4 MB
Last updated
over 10 years ago
docker pull sinet/redis