Tiny Memcached (micro/slim/TLS/full), static scratch builds, fully env-configurable.
3.7K
A deep-optimized Memcached (1.6.38) Docker suite focused on stripping the server down to its absolute essentialsβproducing some of the smallest and most secure Memcached images available. Each variant is engineered to remove unnecessary features, binaries, and files, creating ultra-compact, scratch-based containers ready for production.
Built for:
amd64).micro, slim, tls, fullβscale up or down to match your needs.Multi-arch support:
| Architecture | |
|---|---|
linux/386 | β |
linux/amd64 | β |
linux/arm/v6 | β |
linux/arm/v7 | β |
linux/arm64/v8 | β |
linux/ppc64le | β |
linux/s390x | β |
Purpose: This projectβs core mission is to shrink Memcached as much as possible while keeping it fast, secure, and flexibleβideal for cloud, edge, and microservice environments.
micro) to fully-featured (full).| Architecture | Image Size |
|---|---|
linux/amd64 | π 123.97 KB β |
linux/386 | 133.05 KB |
linux/arm/v7 | 132.77 KB |
linux/arm/v6 | 129.43 KB |
linux/arm64/v8 | 126.94 KB |
linux/ppc64le | 135.63 KB |
linux/s390x | 161.00 KB |
β
~124 KB for amd64? Thatβs next-level lightweight.
Benefits:
scratch = no shell, no libc, no package managerβonly Memcached itself.exec or misuse the imageβgreat for high-security setups.| Image Tag | Features |
|---|---|
tigersmile/memcached:micro | π’ Minimal build: - TCP only (no UDP/socket) - Binary & text protocols - No TLS, SASL, or extstore |
tigersmile/memcached:slim | π’ Mid-tier: - TCP only - Enhanced features for higher load - No TLS |
tigersmile/memcached:tls | π’ Adds TLS: - TCP only - TLS encryption - No SASL |
tigersmile/memcached:full | π’ Fully-featured: - TCP only - TLS + SASL + extstore |
π Note: All variants exclusively support TCP trafficβno UNIX socket or UDP support.
docker run -d \
--name my-memcached \
-e MEMCACHED_MEMORY_LIMIT=512 \
-e MEMCACHED_CONNECTIONS=1024 \
tigersmile/memcached:micro
CLI arguments are optional:
docker run -d \
--name my-memcached \
tigersmile/memcached:micro -m 512 -c 1024
1οΈβ£ Generate certs:
mkdir certs
openssl req -x509 -newkey rsa:4096 -sha256 -days 365 \
-nodes -keyout certs/server.key -out certs/server.crt \
-subj "/CN=localhost"
2οΈβ£ Launch TLS container:
docker run -d \
--name memcached-tls \
-e MEMCACHED_TLS=1 \
-e MEMCACHED_TLS_CERT=/certs/server.crt \
-e MEMCACHED_TLS_KEY=/certs/server.key \
-v $(pwd)/certs:/certs:ro \
tigersmile/memcached:tls
docker run -d \
--name memcached-full \
-e MEMCACHED_EXTSTORE_PATH=/extstore:1G \
-v /path/to/extstore:/extstore \
tigersmile/memcached:full
Customizable with:
MEMCACHED_EXTSTORE_PAGE_SIZEMEMCACHED_EXTSTORE_WBUF_SIZE| Variable | Description | micro | slim | tls | full |
|---|---|---|---|---|---|
| MEMCACHED_MEMORY_LIMIT | Memory limit (MB) | β | β | β | β |
| MEMCACHED_CONNECTIONS | Max simultaneous connections | β | β | β | β |
| MEMCACHED_THREADS | Number of worker threads | β | β | β | β |
| MEMCACHED_PROTOCOL | Protocol (ascii, binary, auto) | β | β | β | β |
| MEMCACHED_REQS_PER_EVENT | Max requests per event | β | β | β | β |
| MEMCACHED_FACTOR | Slab growth factor | β | β | β | β |
| MEMCACHED_MAX_ITEM_SIZE | Max item size | β | β | β | β |
| MEMCACHED_MIN_ITEM_SIZE | Min item size | β | β | β | β |
| MEMCACHED_LISTEN_BACKLOG | Listen backlog size | β | β | β | β |
| MEMCACHED_KEY_DELIMITER | Key delimiter character | β | β | β | β |
| MEMCACHED_ALLOW_SHUTDOWN | Enable ASCII shutdown command | β | β | β | β |
| MEMCACHED_DISABLE_CAS | Disable CAS | β | β | β | β |
| MEMCACHED_LOCK_PAGES | Lock paged memory | β | β | β | β |
| MEMCACHED_ENABLE_COREDUMPS | Enable coredumps | β | β | β | β |
| MEMCACHED_ENABLE_LARGEPAGES | Enable large pages | β | β | β | β |
| MEMCACHED_DISABLE_FLUSH_ALL | Disable flush_all command | β | β | β | β |
| MEMCACHED_DISABLE_DUMPING | Disable stats cachedump/lru_crawler metadump | β | β | β | β |
| MEMCACHED_DISABLE_WATCH | Disable watch commands | β | β | β | β |
| MEMCACHED_VERBOSE | Verbosity level | β | β | β | β |
| MEMCACHED_SASL | Enable SASL authentication | β | β | β | β |
| MEMCACHED_TLS | Enable TLS | β | β | β | β |
| MEMCACHED_TLS_CERT | TLS certificate path | β | β | β | β |
| MEMCACHED_TLS_KEY | TLS key path | β | β | β | β |
| MEMCACHED_TLS_CA | TLS CA certificate path | β | β | β | β |
| MEMCACHED_TLS_VERIFY_MODE | TLS verify mode | β | β | β | β |
| MEMCACHED_EXTSTORE_PATH | Extstore path + size | β | β | β | β |
| MEMCACHED_EXTSTORE_PAGE_SIZE | Extstore page size | β | β | β | β |
| MEMCACHED_EXTSTORE_WBUF_SIZE | Extstore write buffer size | β | β | β | β |
| MEMCACHED_EXTSTORE_THREADS | Extstore thread count | β | β | β | β |
| MEMCACHED_EXTSTORE_ITEM_SIZE | Extstore item size | β | β | β | β |
| MEMCACHED_EXTSTORE_ITEM_AGE | Extstore item age | β | β | β | β |
| MEMCACHED_EXTSTORE_LOW_TTL | Extstore low TTL | β | β | β | β |
| MEMCACHED_EXTSTORE_DROP_UNREAD | Extstore drop unread flag | β | β | β | β |
| MEMCACHED_EXTSTORE_RECACHE_RATE | Extstore recache rate | β | β | β | β |
| MEMCACHED_EXTSTORE_COMPACT_UNDER | Extstore compact threshold | β | β | β | β |
| MEMCACHED_EXTSTORE_DROP_UNDER | Extstore drop threshold | β | β | β | β |
| MEMCACHED_EXTSTORE_MAX_FRAG | Extstore max fragmentation | β | β | β | β |
| MEMCACHED_EXTSTORE_MAX_SLEEP | Extstore max sleep time | β | β | β | β |
| MEMCACHED_SLAB_AUTOMOVE_FREERATIO | Slab automove freeratio | β | β | β | β |
| MEMCACHED_NAPI_IDS | NAPI IDs | β | β | β | β |
This table lists all supported environment variables, with checkmarks showing which variants implement each. Memcached maps them automatically if the feature is available.
ulimits:
nofile:
soft: 65535
hard: 65535
Enjoy lightning-fast, container-optimized Memcached π
Content type
Image
Digest
sha256:1239f89cbβ¦
Size
1.2 MB
Last updated
over 1 year ago
docker pull tigersmile/memcached