Grafana Loki是一个类似于Prometheus的日志聚合系统,由Canonical提供长期维护支持。

3 次收藏下载次数: 0状态:社区镜像维护者:Ubuntu 官方镜像仓库类型:镜像最近更新:6 天前
下载命令
点击查看

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.

TagsSupported untilVersionBaseArchitectures
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/20263.726.04amd64
2.4-22.04_beta
aliasesedge, latest
-2.422.04amd64, s390x, ppc64le, arm64
2.4-22.04_edge
aliases2.4-22.04_edge
-2.422.04amd64, s390x, ppc64le, arm64
View deprecated tags
TagsSupport ended onUpgrade Path
3.7.1-26.04_stable
aliases3.7.1-26.04, 3.7.1-26.04_beta, 3.7.1-26.04_candidate, 3.7.1-26.04_edge
05/2026 -
3.7-24.04_stable
aliases3-24.04, 3-24.04_beta, 3-24.04_candidate, 3-24.04_edge, 3-24.04_stable, 3.7-24.04, 3.7-24.04_beta, 3.7-24.04_candidate, 3.7-24.04_edge
07/2026 -
2.9.15-24.04_stable
aliases2.9-24.04, 2.9-24.04_beta, 2.9-24.04_candidate, 2.9-24.04_edge, 2.9-24.04_stable, 2.9.15-24.04, 2.9.15-24.04_beta, 2.9.15-24.04_candidate, 2.9.15-24.04_edge
10/2025 -
3.4.2-24.04_stable
aliases3.4-24.04, 3.4-24.04_beta, 3.4-24.04_candidate, 3.4-24.04_edge, 3.4-24.04_stable, 3.4.2-24.04, 3.4.2-24.04_beta, 3.4.2-24.04_candidate, 3.4.2-24.04_edge
05/2025 -
3.5-24.04_stable
aliases3.5-24.04, 3.5-24.04_beta, 3.5-24.04_candidate, 3.5-24.04_edge
02/2026 -
3.4.1-24.04_stable
aliases3.4.1-24.04, 3.4.1-24.04_beta, 3.4.1-24.04_candidate, 3.4.1-24.04_edge
05/2025 -
2-24.04_stable
aliases2-24.04, 2-24.04_beta, 2-24.04_candidate, 2-24.04_edge
12/2025 -
3.6-24.04_stable
aliases3.6-24.04, 3.6-24.04_beta, 3.6-24.04_candidate, 3.6-24.04_edge
05/2026 -
2.8.4-22.04_stable
aliases2.8-22.04, 2.8-22.04_beta, 2.8-22.04_candidate, 2.8-22.04_edge, 2.8-22.04_stable, 2.8.4-22.04, 2.8.4-22.04_beta, 2.8.4-22.04_candidate, 2.8.4-22.04_edge
03/2025 -
2.9.6-22.04_stable
aliases2-22.04, 2-22.04_beta, 2-22.04_candidate, 2-22.04_edge, 2-22.04_stable, 2.9-22.04, 2.9-22.04_beta, 2.9-22.04_candidate, 2.9-22.04_edge, 2.9-22.04_stable, 2.9.6-22.04, 2.9.6-22.04_beta, 2.9.6-22.04_candidate, 2.9.6-22.04_edge
05/2025 -
2.9.3-22.04_stable
aliases2.9.3-22.04, 2.9.3-22.04_beta, 2.9.3-22.04_candidate, 2.9.3-22.04_edge
03/2025 -
3.0.0-22.04_stable
aliases3-22.04, 3-22.04_beta, 3-22.04_candidate, 3-22.04_edge, 3-22.04_stable, 3.0-22.04, 3.0-22.04_beta, 3.0-22.04_candidate, 3.0-22.04_edge, 3.0-22.04_stable, 3.0.0-22.04, 3.0.0-22.04_beta, 3.0.0-22.04_candidate, 3.0.0-22.04_edge
05/2025 -
2.9.5-22.04_stable
aliases2.9.5-22.04, 2.9.5-22.04_beta, 2.9.5-22.04_candidate, 2.9.5-22.04_edge
03/2025 -
2.9.2-22.04_stable
aliases2.9.2-22.04, 2.9.2-22.04_beta, 2.9.2-22.04_candidate, 2.9.2-22.04_edge
03/2025 -
2.9.4-22.04_stable
aliases2.9.4-22.04, 2.9.4-22.04_beta, 2.9.4-22.04_candidate, 2.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:

sh
docker 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:

sh
docker 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:

sh
docker 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
sh
docker 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:

bash
docker exec -it loki-container /bin/bash

Get logs

To view the logs of the running container, run:

sh
docker exec loki-container pebble logs

Or, for a specific service:

sh
docker exec loki-container pebble logs <service>
For an older version that is not a rock

To view the logs of the running container, run:

sh
docker logs loki-container

Monitor health checks

Rocks may have predefined health checks that you can list by running:

sh
docker exec loki-container pebble checks

The overall health of your container can be inspected via:

sh
docker exec loki-container pebble health

Configuration

Environment variables

OptionDescriptionDefault
TZTimezone.UTC

Volumes

OptionDescriptionDefault
-v <path>:/etc/loki/local-config.yamlLocal configuration file.None
-v <path>:/lokiPersist data in a docker volume named lokidata.None

Ports

OptionDescriptionDefault
-p <port>:3100Expose 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.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 loki 镜像标签

docker pull docker.xuanyuan.run/ubuntu/loki:<标签>

DockerHub 原生拉取命令

docker pull ubuntu/loki:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告