Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Memcached 1.4.20 Docker image

Description

Docker image based Ubuntu 14.04 LTS with memcached 1.4.20 on board from
https://launchpad.net/~john-koepi/+archive/ubuntu/common

Its features is to delivered memcached service.
You will be able to choose the memcache size, by default 64Mo, the max connection number,
by default 1024 and the bind address ip, by default 0.0.0.0.
Its display WARNING and ERROR verbose on stdout. Useful for external monitoring.

Usage

Simple use of memcached docker image:

$ docker run --name memcached -d -p 11211:11211 sitano/memcached:latest
125c0fc6da85cbc6141f43539565b3b743db169da05e297b821b0c29f17d2638
$ docker ps
CONTAINER ID        IMAGE                             COMMAND                CREATED             STATUS              PORTS                      NAMES
125c0fc6da85        sitano/memcached:latest           /bin/sh -c /usr/bin/   14 minutes ago      Up 14 minutes       0.0.0.0:11211->11211/tcp   memcached

Test it:

$ telnet 127.0.0.1 11211
stats
STAT uptime 2627
STAT time 1405695366
STAT version 1.4.20 (Ubuntu)
STAT libevent 2.0.21-stable
...
STAT reclaimed 0
END

Advanced usage:

You can change:

  • the max connection to memcached with MAX_CONN variable. Default value is 1024.
  • the max memory size with MAX_MEM variable in Mo. Default value is 64.
  • and the bind ip with BIND variable. Default value is 0.0.0.0

For example :

$ docker run  --rm -ti -e MAX_MEM=1024,MAX_CONN=10000 sitano/memcached:latest

launch memcached docker with 1GB RAM and usable by 10000 simultaneous clients.

Docker Pull Command
Owner
sitano
Source Repository