Grafana Loki, a log aggregation system like Prometheus. Long-term tracks maintained by Canonical.
50K+
ubuntu/loki is a rock for loki maintained by Canonical.
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.
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 |
| 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 | - |
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.
To view the Pebble services and checks defined in this rock:
docker run --rm ubuntu/loki:3.7.1-26.04_stable plan
The container spins up with the default entrypoint. To inspect the entrypoint and command:
docker inspect --format='{{.Config.Entrypoint}} {{.Config.Cmd}}' ubuntu/loki:3.7.1-26.04_stable
To run this rock, use any of the usual container runtimes, for example, docker:
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.
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:
docker exec -it loki-container /bin/bash
To view the logs of the running container, run:
docker exec loki-container pebble logs
Or, for a specific service:
docker exec loki-container pebble logs <service>
To view the logs of the running container, run:
docker logs loki-container
Rocks may have predefined health checks that you can list by running:
docker exec loki-container pebble checks
The overall health of your container can be inspected via:
docker exec loki-container pebble health
| Option | Description | Default |
|---|---|---|
| TZ | Timezone. | UTC |
| 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 |
| Option | Description | Default |
|---|---|---|
-p <port>:3100 | Expose the container's port 3100 on the host's <port>. | None |
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 Canonical’s IP Policy.
Content type
Image
Digest
sha256:4820c2f8a…
Size
171.7 MB
Last updated
3 months ago
docker pull ubuntu/loki:3.7.1-26.04_stablePulls:
5,612
Last week