Public | Automated Build

Last pushed: 2 years ago
Short Description
Redis Dockerfile for trusted automated Docker builds
Full Description

Docker Alpine Redis with s6 overlay init system

Smallest redis image: only 16Mb!

Base Docker Image

[Alpinelinux:latest(3.3)]

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull cleardevice/redis

    (alternatively, you can build an image from Dockerfile: docker build -t="cleardevice/redis" github.com/cleardevice/redis)

Usage

Run redis-server

docker run -d --name redis -p 6379:6379 cleardevice/redis

Run redis-server with persistent data directory. (creates dump.rdb)

docker run -d -p 6379:6379 -v <data-dir>:/data --name redis cleardevice/redis

Run redis-server with persistent data directory and password.

docker run -d -p 6379:6379 -v <data-dir>:/data --name redis cleardevice/redis redis-server /etc/redis/redis.conf --requirepass <password>

Run redis-cli

docker run -it --rm --link redis:redis cleardevice/redis bash -c 'redis-cli -h redis'
Docker Pull Command
Owner
cleardevice
Source Repository