Loki 是由 Grafana 开发的云原生日志聚合系统,专为云原生环境设计,具备轻量级架构与高效存储能力,深度集成 Prometheus 和 Grafana 生态,支持分布式系统及 Kubernetes 等容器化环境的日志收集、存储与查询;其采用标签索引而非全文索引的设计,有效降低资源占用,适合大规模日志数据管理,帮助用户高效提取、分析关键日志信息,是云原生应用日志监控的理想工具。

336 次收藏下载次数: 0状态:社区镜像维护者:Grafana 可观测性平台仓库类型:镜像最近更新:
下载命令
点击查看

Loki Docker Image

Running

docker run -d --name=loki -p 3100:3100 grafana/loki

To persist data in a docker volume named loki-data:

docker run -d --name=loki --mount source=loki-data,target=/loki -p 3100:3100 grafana/loki

To run using a custom config file:

docker run -d --name=loki --mount type=bind,source="path to loki-config.yaml",target=/etc/loki/local-config.yaml -p 3100:3100 grafana/loki

In most cases you should specify a tagged release version for running, the above examples all use the implied :latest tag:

docker run -d --name=loki -p 3100:3100 grafana/loki:1.4.1

Tags

Main build tags

Every commit to main in the Loki repo creates a docker image tag of the format main-xxxxxxx where xxxxxxx will be the first 7 characters of the commit hash

WARNING main-xxxxxxx tags are automatically deleted from docker hub after 60 days!!

Release build tags

Every tagged release in the https://github.com/grafana/loki/releases will generate tagged docker images here, they can often be hard to find in the long list of main tags but they are there.

Release tags will be kept forever.

NOTE

Starting with the first tagged release v0.1.0 the tag had a v prefix: grafana/loki:v0.1.0, this was the case up to and including grafana/loki:v1.3.0

For Loki 1.4.0 and up, the v prefix has been removed: grafana/loki:1.4.0

k tags

k tags such as grafana/loki:k15-d70fc0e are used via the internal build promotion process at Grafana, we do not suggest anyone use these tags as there is no reliable communication mechanism for us to use regarding issues we might uncover while testing/using these tags. In the future we'd like to *** ways to change this but for now it's best to stay clear.

More Info

  • https://github.com/grafana/loki/tree/main/docs
  • https://github.com/grafana/loki#getting-help

镜像拉取方式

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

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

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

DockerHub 原生拉取命令

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