ubuntu/loki

Verified Publisher

By Canonical

Updated 10 days ago

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

Image
Monitoring & Observability
2

10K+

loki | Ubuntu

Current loki Docker Image from Canonical, based on Ubuntu. Receives security updates and rolls to newer loki or Ubuntu release. This repository is free to use and exempted from per-user rate limits.

About loki

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. Read more on the official website. Please note that the images tagged up to 2.4 are Dockerfile-base images, whereas from version 2.8.4 onward the images are now rocks. As such the entrypoint is now Pebble. Read more on the Rockcraft docs.

Tags and Architectures

LTS Up to 5 years of free security maintenance on LTS channels.

ESM Up to 10 years of customer security maintenance from Canonical's restricted repositories.

Channel TagsSupported untilCurrentlyArchitectures
3.4.1-24.04_stable3.4.1-24.04, 3.4.1-24.04_beta, 3.4.1-24.04_candidate, 3.4.1-24.04_edge05/2025loki 3.4.1 on Ubuntu 24.04 LTSamd64
3.4.2-24.04_stable3-24.04, 3-24.04_beta, 3-24.04_candidate, 3-24.04_edge, 3-24.04_stable, 3.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_edge05/2025loki 3.4.2 on Ubuntu 24.04 LTSamd64
2.8.4-22.04_stable2.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_edge03/2025loki 2.8.4 on Ubuntu 22.04 LTSamd64
2.9.6-22.04_stable2-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_edge05/2025loki 2.9.6 on Ubuntu 22.04 LTSamd64
2.9.3-22.04_stable2.9.3-22.04, 2.9.3-22.04_beta, 2.9.3-22.04_candidate, 2.9.3-22.04_edge03/2025loki 2.9.3 on Ubuntu 22.04 LTSamd64
3.0.0-22.04_stable3-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_edge05/2025loki 3.0.0 on Ubuntu 22.04 LTSamd64
2.9.5-22.04_stable2.9.5-22.04, 2.9.5-22.04_beta, 2.9.5-22.04_candidate, 2.9.5-22.04_edge03/2025loki 2.9.5 on Ubuntu 22.04 LTSamd64
2.9.2-22.04_stable2.9.2-22.04, 2.9.2-22.04_beta, 2.9.2-22.04_candidate, 2.9.2-22.04_edge03/2025loki 2.9.2 on Ubuntu 22.04 LTSamd64
2.9.4-22.04_stable2.9.4-22.04, 2.9.4-22.04_beta, 2.9.4-22.04_candidate, 2.9.4-22.04_edge03/2025loki 2.9.4 on Ubuntu 22.04 LTSamd64
2.4-22.04_betaedge, latest-loki 2.4 on Ubuntu 22.04 LTSamd64, s390x, ppc64le, arm64
2.4-22.04_edge2.4-22.04_edge-loki 2.4 on Ubuntu 22.04 LTSamd64, s390x, ppc64le, arm64
track_risk

Channel Tags shows the most stable channel for that track ordered stable, candidate, beta, edge. More risky channels are always implicitly available. So if beta is listed, you can also pull edge. If candidate is listed, you can pull beta and edge. When stable is listed, all four are available. Images are guaranteed to progress through the sequence edge, beta, candidate before stable.

Commercial use and Extended Security Maintenance channels

If your usage includes commercial redistribution, or requires ESM or unavailable channels/versions, please get in touch with the Canonical team (or using rocks@canonical.com).

Usage

Launch this image locally:

docker run -d --name loki-container -e TZ=UTC -p 3100:3100 ubuntu/loki:3.4.1-24.04_stable

Access your Loki instance at http://localhost:3100.

Parameters

ParameterDescription
-e TZ=UTCTimezone.
-p 3100:3100Expose Loki on localhost:3100.
-v /path/to/config/file:/etc/loki/local-config.yamlLocal configuration file local-config.yml.
-v lokidata:/lokiPersist data in a docker volume named lokidata

Testing/Debugging

To debug the container:

docker logs -f loki-container

To get an interactive shell:

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

To debug the container:

docker logs -f loki-container

To get an interactive shell:

# For Dockerfile-based images
docker exec -it loki-container /bin/bash
# For rocks
docker exec -it loki-container exec /bin/bash

Bugs and feature requests

If you find a bug in our image or want to request a specific feature, please file a bug here:

https://bugs.launchpad.net/ubuntu-docker-images/+filebug

Please title the bug "loki: <issue summary>". Make sure to include the digest of the image you are using, from:

docker images --no-trunc --quiet ubuntu/loki:<tag>

Deprecated channels & tags

These channels (tags) are not updated anymore. Please upgrade to newer channels, or reach out if you can't upgrade.

TrackVersionEOLUpgrade Path
track

Docker Pull Command

docker pull ubuntu/loki