Skip to content

Redis Dockerfile for trusted automated Docker builds.

License

Notifications You must be signed in to change notification settings

yonah-codefresh/redis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 

Repository files navigation

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 dockerfile/redis

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

Usage

Run redis-server

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

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

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

Run redis-server with persistent data directory and password.

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

Run redis-cli

docker run -it --rm --link redis:redis dockerfile/redis bash -c 'redis-cli -h redis'

About

Redis Dockerfile for trusted automated Docker builds.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published