Pages

Tuesday, January 14, 2014

memcached server on Fedora, using Docker

In just a few simple steps, you can have an instance of memcached up and running in a Docker container. Here's how you run it. This was tested on Docker 0.7.2

Grab the dockerfile from either of these locations:

https://github.com/scollier/Fedora-Dockerfiles

or:

https://git.fedorahosted.org/cgit/dockerfiles.git/

Get the version of Docker:

# docker version



To build:

Copy the sources down -

# docker build -rm -t /memcached .

To run:

# docker run -d -p 11211:11211 /memcached

Test:

# telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
stats
STAT pid 1
STAT uptime 165
STAT time 1387383960
STAT version 1.4.15
STAT libevent 2.0.21-stable


This is what it looks like. Enjoy the Asciicast.

1 comment: