Public | Automated Build

Last pushed: 7 days ago
Short Description
Docker image using supervisord to start COMMAND. Different from official one, which uses gosu.
Full Description

Howto use:

docker run --net=host -d redis6379

or

docker run -p 6379:6379 -d redis6379

About ip forwarding:

  • "--net=host", this make the newly created container use host's ip and own exposed ports. This is the way currently to support redis cluster.
  • "-v 6379:6379", works very similarly to the above way, except this will not work for redis-cluster. The explanation is at the bottom.

Intro:

Docker image using supervisord to start COMMAND. Different from official one, which uses gosu and corresponding entrypoint.sh.

By using
1) official ubuntu baseimage.(official redis docker uses alpine or debian)
2) supervisord, from here we can start multiple processes and control them easily.

Why I don't use official redis docker?

This is just because of the unstable cdn of Alpine apk index archives and gosu source files to download. Also I don't like gosu to start services under specific users.

Even though the docker image generated by this way is much smaller, ubuntu based image is still my favorite, on which most of my docker images are built.

Github repo for Docker files:

https://github.com/crossz/docker-redis-cluster
Here I put a lot of stuff here. Most of them works for cluster, but also includes :

  1. alpine_entrypoint: Alpine as base image + apk redis package + entrypoint.sh (no gosu)
  2. ubuntu_entrypoint: Ubuntu as base image + redis-3.0.7.tar.gz + entrypoint.sh (no gosu)
  3. archive: Some redis binary usage (no docker)

Notes:

Docker Pull Command
Owner
crossz
Source Repository

Comments (0)