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:


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


# telnet localhost 11211
Connected to localhost.
Escape character is '^]'.
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.

No comments:

Post a Comment