Public Repository

Last pushed: 5 months ago
Short Description
Image of the Redis instances of Scalingo PaaS
Full Description

Running the image

This image contains redis. To start the image, you can run the following snippet:

docker run -it -p 6379:6379 \
           -v <DATA_DIRECTORY>:/var/lib/redis \
           scalingo/redis /redis

You database is now up and running on the port 6379 of your host.

Parameters

  • <DATA_DIRECTORY>: directory used to store database data.

Environment

  • DB_PASSWORD (Optional, default: null): password used for database authentication.
  • DB_UID (Optional, default: 1502): user UID that redis should use to store data and run itself. You can set it to your own UID to have a simpler dev environment. Just add -e DB_UID=`id -u` before the -v flag.

Startup logs

Normal startup logs are :

              _._                                                  
         _.-``__ ''-._                                             
    _.-``    `.  `_.  ''-._           Redis 3.2.0 (00000000/0) 64 bit
.-`` .-```.  ```\/    _.,_ ''-._                                   
(    '      ,       .-`  | `,    )     Running in standalone mode
|`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
|    `-._   `._    /     _.-'    |     PID: 9
`-._    `-._  `-./  _.-'    _.-'                                   
|`-._`-._    `-.__.-'    _.-'_.-'|                                  
|    `-._`-._        _.-'_.-'    |           http://redis.io        
 `-._    `-._`-.__.-'_.-'    _.-'                                   
|`-._`-._    `-.__.-'    _.-'_.-'|                                  
|    `-._`-._        _.-'_.-'    |                                  
`-._    `-._`-.__.-'_.-'    _.-'                                   
    `-._    `-.__.-'    _.-'                                       
        `-._        _.-'                                           
            `-.__.-'                                               

9:M 13 Jun 08:33:34.343 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
9:M 13 Jun 08:33:34.343 # Server started, Redis version 3.2.0
9:M 13 Jun 08:33:34.343 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
9:M 13 Jun 08:33:34.343 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
9:M 13 Jun 08:33:34.343 * The server is now ready to accept connections on port 6379
Docker Pull Command
Owner
scalingo