ubuntu/loki
Grafana Loki, a log aggregation system like Prometheus. Long-term tracks maintained by Canonical.
10K+
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.
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.
Up to 5 years of free security maintenance on LTS channels.
Up to 10 years of customer security maintenance from Canonical's restricted repositories.
Channel Tags | Supported until | Currently | Architectures | |
---|---|---|---|---|
3.4.1-24.04_stable | 3.4.1-24.04 , 3.4.1-24.04_beta , 3.4.1-24.04_candidate , 3.4.1-24.04_edge | 05/2025 | loki 3.4.1 on Ubuntu 24.04 LTS | amd64 |
3.4.2-24.04_stable | 3-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_edge | 05/2025 | loki 3.4.2 on Ubuntu 24.04 LTS | amd64 |
2.8.4-22.04_stable | 2.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 | loki 2.8.4 on Ubuntu 22.04 LTS | amd64 |
2.9.6-22.04_stable | 2-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 | loki 2.9.6 on Ubuntu 22.04 LTS | amd64 |
2.9.3-22.04_stable | 2.9.3-22.04 , 2.9.3-22.04_beta , 2.9.3-22.04_candidate , 2.9.3-22.04_edge | 03/2025 | loki 2.9.3 on Ubuntu 22.04 LTS | amd64 |
3.0.0-22.04_stable | 3-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 | loki 3.0.0 on Ubuntu 22.04 LTS | amd64 |
2.9.5-22.04_stable | 2.9.5-22.04 , 2.9.5-22.04_beta , 2.9.5-22.04_candidate , 2.9.5-22.04_edge | 03/2025 | loki 2.9.5 on Ubuntu 22.04 LTS | amd64 |
2.9.2-22.04_stable | 2.9.2-22.04 , 2.9.2-22.04_beta , 2.9.2-22.04_candidate , 2.9.2-22.04_edge | 03/2025 | loki 2.9.2 on Ubuntu 22.04 LTS | amd64 |
2.9.4-22.04_stable | 2.9.4-22.04 , 2.9.4-22.04_beta , 2.9.4-22.04_candidate , 2.9.4-22.04_edge | 03/2025 | loki 2.9.4 on Ubuntu 22.04 LTS | amd64 |
2.4-22.04_beta | edge , latest | - | loki 2.4 on Ubuntu 22.04 LTS | amd64 , s390x , ppc64le , arm64 |
2.4-22.04_edge | 2.4-22.04_edge | - | loki 2.4 on Ubuntu 22.04 LTS | amd64 , 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
.
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).
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
Parameter | Description |
---|---|
-e TZ=UTC | Timezone. |
-p 3100:3100 | Expose Loki on localhost:3100 . |
-v /path/to/config/file:/etc/loki/local-config.yaml | Local configuration file local-config.yml . |
-v lokidata:/loki | Persist 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
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
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>
These channels (tags) are not updated anymore. Please upgrade to newer channels, or reach out if you can't upgrade.
Track | Version | EOL | Upgrade Path |
---|---|---|---|
track |
docker pull ubuntu/loki