This project is no longer actively maintained.
Back in 2017, few open source project provide docker image, etc and our jobs had a real nice goal. Now (2023), all open source community is mature, provides tools and images more than we needs. Thanks to all members for their time and effort.
Docker Image for Redis based on airdock/base:jessie
Purpose of this image is:
- install Redis server
- run server on redis user account
- integrate tini process managment
- based on airdock/base:jessie
Name: airdock/redis
Few links:
- latest, 3.2 -> 3.2.6
- 2.8 -> 2.8.19
- neuralredis -> neural networks data structure extension for Redis machine learning (https://github.com/antirez/neural-redis)
You should have already install Docker.
Execute redis server with default configuration:
# latest
docker run -d -p 6379:6379 --name redis airdock/redis:latest
# or 3.2
docker run -d -p 6379:6379 --name redis airdock/redis:3.2
# Neural Redis
docker run -d -p 6379:6379 --name redis-neural airdock/redis:neuralredis
docker run -d -p 6379:6379 -v <data-dir>:/var/lib/redis --name redis airdock/redis
Or with a password:
docker run -d -p 6379:6379 -v <data-dir>:/var/lib/redis --name redis airdock/redis redis-server /etc/redis/redis.conf --requirepass <password>
Take care about your permission on host folder named '/var/lib/redis'.
The user redis (uid 4201) in your container should be known into your host. See :
So you should create an user with this uid:gid:
sudo groupadd redis -g 4201
sudo useradd -u 4201 --no-create-home --system --no-user-group redis
sudo usermod -g redis redis
And then set owner and permissions on your host directory:
chown -R redis:redis /var/lib/redis
Don't forget to add your current user to this new group.
docker run -it --rm --link redis:redis airdock/redis bash -c 'redis-cli -h redis'
Or, use (be sure to name redis server as 'redis' on client side):
docker run --link redis:redis -ti airdock/redis-client
Configuration file is located under /etc/redis.
On docker host, you should set:
echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo "net.core.somaxconn=1024" >> /etc/sysctl.conf
echo "vm.overcommit_memory=1" >> /etc/sysctl.conf
- more test and usage (single, master/slave, ...)
- add redis server 3.2.6 from source
- launch redis-server with redis:redis account
- integrate tini
- log to docker collector
- expose port 6379
- listen all addresses
- data directory "/var/lib/redis" (from package)
- add volume on and data folder (/var/lib/redis) and log folder (/var/log/redis)
- define a quick and dirty redis client image (airdock/redis-client)
- MIT license
- add redis server 2.8.19 from source
- launch redis-server with redis:redis account
- integrate tini
- log to docker collector
- expose port 6379
- listen all addresses
- data directory "/var/lib/redis" (from package)
- add volume on and data folder (/var/lib/redis) and log folder (/var/log/redis)
- define a quick and dirty redis client image (airdock/redis-client)
- MIT license
- add redis server (Actually based on unstable redis server version)
- add https://github.com/antirez/neural-redis from source
- launch redis-server with redis:redis account
- integrate tini
- log to docker collector
- expose port 6379
- listen all addresses
- data directory "/var/lib/redis" (from package)
- add volume on and data folder (/var/lib/redis) and log folder (/var/log/redis)
- define a quick and dirty redis client image (airdock/redis-client)
- MIT license
- Install "make" utility, and execute:
make build
- Or execute: 'docker build -t airdock/redis:latest --rm .'
See Docker Project Tree for more details.
The MIT License (MIT)
Copyright (c) 2015 Airdock.io
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.