This repository contains Dockerfile of Redis for Docker's automated build published to the public Docker Hub Registry.
The original master is based of Debian ubuntu:14.04: 473MB. This image is based on debian wheezy: 185MB.
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
hmalphettes/redis latest 1adb1e2723d3 27 seconds ago 185.7 MB
dockerfile/redis latest 755cafb337f4 20 hours ago 473 MB
-
Install Docker.
-
Download automated build from public Docker Hub Registry:
docker pull dockerfile/redis
(alternatively, you can build an image from Dockerfile:
docker build -t="dockerfile/redis" github.com/dockerfile/redis
)
docker run -d --name redis -p 6379:6379 dockerfile/redis
docker run -d -p 6379:6379 -v <data-dir>:/data --name redis dockerfile/redis
docker run -d -p 6379:6379 -v <data-dir>:/data --name redis dockerfile/redis redis-server /etc/redis/redis.conf --requirepass <password>
docker run -it --rm --link redis:redis dockerfile/redis bash -c 'redis-cli -h redis'