├── Dockerfile └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM fedora:21 2 | 3 | RUN yum update -y -q; yum clean all 4 | RUN yum install -y -q memcached; yum clean all 5 | 6 | ENV MEMCACHED_PORT 11211 7 | ENV MEMCACHED_CACHESIZE 64 8 | EXPOSE 11211 9 | 10 | CMD /usr/bin/bash -c '/usr/bin/memcached -u memcached -p ${MEMCACHED_PORT} -m ${MEMCACHED_CACHESIZE}' 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # memcached-docker 2 | 3 | Docker built image is hosted here: https://registry.hub.docker.com/u/state/memcached/ 4 | 5 | ## Configuration 6 | 7 | Configuration is done using environment variables. 8 | 9 | - `MEMCACHED_PORT`: 11211 (default) 10 | - `MEMCACHED_CACHESIZE`: 64 (default) 11 | 12 | ## Running 13 | 14 | ```bash 15 | docker run -e MEMCACHED_CACHESIZE=512 state/memcached 16 | ``` 17 | 18 | --------------------------------------------------------------------------------