Docker Image for Redis based on airdock/base:jessie
Purpose of this image is:
Name: airdock/redis
Few links:
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
make buildSee 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.
Content type
Image
Digest
sha256:631d38c2a…
Size
72.5 MB
Last updated
almost 6 years ago
docker pull airdock/redis