ubuntu/loki Docker Image
Grafana Loki是一个类似于Prometheus的日志聚合系统,由Canonical提供长期维护支持。
ubuntu/loki is a rock for loki maintained by https://canonical.com/.
Loki is a horizontally scalable, highly available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be very cost effective and easy to operate. It does not index the contents of the logs, but rather a set of labels for each log stream.
\https://grafana.com/oss/loki/\]
Tags and Architectures
NOTE: These tags follow a specific naming convention that respects the concept of channels.
| Tags | Supported until | Version | Base | Architectures | |
|---|---|---|---|---|---|
3.7-26.04_stable | aliases3-26.04, 3-26.04_beta, 3-26.04_candidate, 3-26.04_edge, 3-26.04_stable, 3.7-26.04, 3.7-26.04_beta, 3.7-26.04_candidate, 3.7-26.04_edge | 08/2026 | 3.7 | 26.04 | amd64 |
2.4-22.04_beta | aliasesedge, latest | - | 2.4 | 22.04 | amd64, s390x, ppc64le, arm64 |
2.4-22.04_edge | aliases2.4-22.04_edge | - | 2.4 | 22.04 | amd64, s390x, ppc64le, arm64 |
View deprecated tags
| Tags | Support ended on | Upgrade Path | |
|---|---|---|---|
3.7.1-26.04_stable | aliases3.7.1-26.043.7.1-26.04_beta3.7.1-26.04_candidate3.7.1-26.04_edge | 05/2026 | - |
3.7-24.04_stable | aliases3-24.043-24.04_beta3-24.04_candidate3-24.04_edge3-24.04_stable3.7-24.043.7-24.04_beta3.7-24.04_candidate3.7-24.04_edge | 07/2026 | - |
2.9.15-24.04_stable | aliases2.9-24.042.9-24.04_beta2.9-24.04_candidate2.9-24.04_edge2.9-24.04_stable2.9.15-24.042.9.15-24.04_beta2.9.15-24.04_candidate2.9.15-24.04_edge | 10/2025 | - |
3.4.2-24.04_stable | aliases3.4-24.043.4-24.04_beta3.4-24.04_candidate3.4-24.04_edge3.4-24.04_stable3.4.2-24.043.4.2-24.04_beta3.4.2-24.04_candidate3.4.2-24.04_edge | 05/2025 | - |
3.5-24.04_stable | aliases3.5-24.043.5-24.04_beta3.5-24.04_candidate3.5-24.04_edge | 02/2026 | - |
3.4.1-24.04_stable | aliases3.4.1-24.043.4.1-24.04_beta3.4.1-24.04_candidate3.4.1-24.04_edge | 05/2025 | - |
2-24.04_stable | aliases2-24.042-24.04_beta2-24.04_candidate2-24.04_edge | 12/2025 | - |
3.6-24.04_stable | aliases3.6-24.043.6-24.04_beta3.6-24.04_candidate3.6-24.04_edge | 05/2026 | - |
2.8.4-22.04_stable | aliases2.8-22.042.8-22.04_beta2.8-22.04_candidate2.8-22.04_edge2.8-22.04_stable2.8.4-22.042.8.4-22.04_beta2.8.4-22.04_candidate2.8.4-22.04_edge | 03/2025 | - |
2.9.6-22.04_stable | aliases2-22.042-22.04_beta2-22.04_candidate2-22.04_edge2-22.04_stable2.9-22.042.9-22.04_beta2.9-22.04_candidate2.9-22.04_edge2.9-22.04_stable2.9.6-22.042.9.6-22.04_beta2.9.6-22.04_candidate2.9.6-22.04_edge | 05/2025 | - |
2.9.3-22.04_stable | aliases2.9.3-22.042.9.3-22.04_beta2.9.3-22.04_candidate2.9.3-22.04_edge | 03/2025 | - |
3.0.0-22.04_stable | aliases3-22.043-22.04_beta3-22.04_candidate3-22.04_edge3-22.04_stable3.0-22.043.0-22.04_beta3.0-22.04_candidate3.0-22.04_edge3.0-22.04_stable3.0.0-22.043.0.0-22.04_beta3.0.0-22.04_candidate3.0.0-22.04_edge | 05/2025 | - |
2.9.5-22.04_stable | aliases2.9.5-22.042.9.5-22.04_beta2.9.5-22.04_candidate2.9.5-22.04_edge | 03/2025 | - |
2.9.2-22.04_stable | aliases2.9.2-22.042.9.2-22.04_beta2.9.2-22.04_candidate2.9.2-22.04_edge | 03/2025 | - |
2.9.4-22.04_stable | aliases2.9.4-22.042.9.4-22.04_beta2.9.4-22.04_candidate2.9.4-22.04_edge | 03/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/loki:3.7.1-26.04_stable plan
For an older version that is not a rock
The container spins up with the default entrypoint. To inspect the entrypoint and command:
shdocker inspect --format='{{.Config.Entrypoint}} {{.Config.Cmd}}' ubuntu/loki:3.7.1-26.04_stable
Run
To run this rock, use any of the usual container runtimes, for example, docker:
shdocker run --name loki-container \ -e TZ=UTC -p 3100:3100 -v /path/to/config/file:/etc/loki/local-config.yaml -v lokidata:/loki \ ubuntu/loki:3.7.1-26.04_stable
Access the Loki instance at http://localhost:3100.
For an older version that is not a rock
shdocker run --name loki-container \ -e TZ=UTC -p 3100:3100 -v /path/to/config/file:/etc/loki/loki.yaml -v lokidata:/loki \ ubuntu/loki:3.7.1-26.04_stable
Access the legacy Loki instance at http://localhost:3100.
Legacy tags up to 2.4 are Dockerfile-based images. To open an interactive shell in one of these containers, use:
bashdocker exec -it loki-container /bin/bash
Get logs
To view the logs of the running container, run:
shdocker exec loki-container pebble logs
Or, for a specific service:
shdocker exec loki-container pebble logs <service>
For an older version that is not a rock
To view the logs of the running container, run:
shdocker logs loki-container
Monitor health checks
Rocks may have predefined health checks that you can list by running:
shdocker exec loki-container pebble checks
The overall health of your container can be inspected via:
shdocker exec loki-container pebble health
Configuration
Environment variables
| Option | Description | Default |
|---|---|---|
| TZ | Timezone. | UTC |
Volumes
| Option | Description | Default |
|---|---|---|
-v <path>:/etc/loki/local-config.yaml | Local configuration file. | None |
-v <path>:/loki | Persist data in a docker volume named lokidata. | None |
Ports
| Option | Description | Default |
|---|---|---|
-p <port>:3100 | Expose the container's port 3100 on the host's <port>. | None |
\https://github.com/canonical/loki-rock/issues\] \https://github.com/canonical/loki-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 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务