Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Redis Dockerfile

This repository contains Dockerfile of Redis for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image

Installation

  1. Install Docker.

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

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

Usage

Run redis-server

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

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

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

Run redis-server with persistent data directory and password.

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

Run redis-cli

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