ubuntu/loki

Verified Publisher

By Canonical

Updated 3 months ago

Grafana Loki, a log aggregation system like Prometheus. Long-term tracks maintained by Canonical.

Image
Monitoring & observability
3

50K+

ubuntu/loki repository overview

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.

[Learn more about 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.

[Learn more about Pebble]

Inspect

To view the Pebble services and checks defined in this rock:

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:

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:

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
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

Get logs

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>
For an older version that is not a rock

To view the logs of the running container, run:

docker logs loki-container
Monitor health checks

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

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

[Report a bug] [Contribute]

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.

Tag summary

Content type

Image

Digest

sha256:4820c2f8a

Size

171.7 MB

Last updated

3 months ago

docker pull ubuntu/loki:3.7.1-26.04_stable

This week's pulls

Pulls:

5,612

Last week