Public | Automated Build

Last pushed: 2 years ago
Short Description
Memcached docker images based on Ubuntu 14.10. It is small and basic.
Full Description

Memcached 1.4.14 Docker image


This is a Memcached 1.4.14 docker images based on Ubuntu 14.10. It is small and basic.

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
Its display WARNING and ERROR verbose on stdout. Useful for external monitoring.

So, this image respects pragmatic simple vision of Docker.
If you are looking for a complete VM, just use LXC.
LXC is an amazing product to get fast full VM where Docker is amazing to get only one service by VM.


Simple use of memcached docker image:

    $ docker run -d -P --name memcached sylvainlasnier/memcached 
$ docker ps
CONTAINER ID        IMAGE                             COMMAND                CREATED             STATUS              PORTS                      NAMES
7b71841bc1ff        sylvainlasnier/memcached:latest   "/usr/bin/memcached    6 seconds ago       Up 5 seconds>11211/tcp   memcached           

Test it:

$ nc `docker inspect -f '{{.NetworkSettings.IPAddress}}' 7b7184` 11211
STAT uptime 2627
STAT time 1405695366
STAT version 1.4.14 (Ubuntu)
STAT libevent 2.0.21-stable
STAT reclaimed 0

Please replace container ID in nc command line with your ;)

I use these docker images in production and I assume update.
Have fun and try my other docker images ^^

Docker Pull Command
Source Repository

Comments (4)
2 years ago

How to set memcache parameters (size, max connection number, bind address ip)?

3 years ago

(looks like my issue was fixed by removing the variables/flags... I see now that it may be best to keep such comments to github issues though)

3 years ago

This won't run unless I specify the command to run manually. I think it's because the "exec" form of the CMD directive (the result of giving CMD an array instead of just a string) doesn't run in a shell and doesn't expand shell variables. So your variables in your CMD don't work.


3 years ago

When i do as instructed i get the container running, but when i try to test it, it can not reach it. It will work if i enter in container bash, but i would like to have it accessible from outside of container?