ubuntu/memcached Docker Image
Memcached 是一种内存中的键值存储,用于存储小块任意数据(如字符串、对象),由 Canonical 维护长期跟踪。
ubuntu/memcached is a rock for Memcached maintained by https://canonical.com/.
Memcached is a high-performance, distributed memory object caching system.
This image is a ***ed Ubuntu rock. It contains a minimal Memcached installation and the necessary tools to run and manage Memcached instances.
\https://memcached.org/\]
Tags and Architectures
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures | |
|---|---|---|---|---|---|
1.6-26.04_stable | aliases1.6-26.04, 1.6-26.04_beta, 1.6-26.04_candidate, 1.6-26.04_edge | 05/2031 | 1.6 | 26.04 | ppc64le, s390x, amd64, arm64 |
1.6-24.04_beta | aliases1.6-24.04_beta | 05/2029 | 1.6 | 24.04 | amd64, arm64, s390x, ppc64le |
1.6-22.04_beta | aliases1.6-22.04_beta | 06/2027 | 1.6 | 22.04 | amd64, s390x, ppc64le, arm64 |
1.6-24.04_edge | aliases1.6-24.04_edge | 05/2029 | 1.6 | 24.04 | amd64, arm64, s390x, ppc64le |
1.6-22.04_edge | aliases1.6-22.04_edge | 06/2027 | 1.6 | 22.04 | amd64, s390x, ppc64le, arm64 |
View deprecated tags
| Tags | Support ended on | Upgrade Path | |
|---|---|---|---|
1.6-25.04_beta | aliases1.6-25.04_edgeedgelatest | 01/2026 | - |
1.6-24.10_beta | aliases1.6-24.10_edge | 07/2025 | - |
1.6-23.10_beta | aliases1.6-23.10_edge | 07/2024 | - |
1.6-23.04_beta | aliases1.6-23.04_edge | 01/2024 | - |
1.6-22.10_beta | aliases1.6-22.10_edge | 07/2023 | - |
1.6-21.10_beta | aliases1.6-21.10_edge | 07/2022 | - |
1.6-21.04_beta | aliases1.6-21.04_edge | 01/2022 | - |
1.5-20.04_beta | aliases1.5-20.04_edge | 05/2025 | - |
Get started
This rock's entrypoint is Pebble, a container-optimized init process that enables the orchestration of a collection of local service processes as an organized set.
\https://documentation.ubuntu.com/pebble/\]
Inspect
To view the https://documentation.ubuntu.com/rockcraft/en/latest/reference/rockcraft-yaml/#services and https://documentation.ubuntu.com/rockcraft/latest/reference/rockcraft-yaml/#checks defined in this rock:
shdocker run --rm ubuntu/memcached:1.6-25.04_beta plan
Run
To run this rock, use any of the usual container runtimes, for example, docker:
shdocker run --name memcached-container \ -p 11211:11211 \ ubuntu/memcached:1.6-25.04_beta
Access your Memcached server at localhost:11211
Get instance stats:
bashprintf "stats " | nc -q 1 -w 1 127.0.0.1 11211
Write and read a value:
bashprintf "set my_key 0 60 11 hello world " | nc -q 1 127.0.0.1 11211 printf "get my_key " | nc -q 1 127.0.0.1 11211 | grep "hello world"
Get logs
To view the logs of the running container, run:
shdocker exec memcached-container pebble logs
Or, for a specific service:
shdocker exec memcached-container pebble logs <service>
Monitor health checks
Rocks may have predefined health checks that you can list by running:
shdocker exec memcached-container pebble checks
The overall health of your container can be inspected via:
shdocker exec memcached-container pebble health
Configuration
Environment variables
| Option | Description | Default |
|---|---|---|
-e TZ=UTC | Timezone. | None |
Ports
| Option | Description | Default |
|---|---|---|
-p 11211:11211 | Expose Memcached on localhost:11211 | None |
Other configuration options
| Option | Description | Default |
|---|---|---|
--args <memcached-args> | Specific memcached arguments | None |
\https://github.com/canonical/memcached-rock/issues\] \https://github.com/canonical/memcached-rock\]
Canonical is the provider of this container image. It is the user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within, as well as with https://canonical.com/legal/intellectual-property-policy.
ubuntu 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 memcached 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务