
elasticsearch-curator是基于Alpine 3.7和Python 3.6.4构建的Docker镜像,封装了Elasticsearch Curator 5.5.1版本。Elasticsearch Curator是一款用于管理Elasticsearch索引生命周期的工具,可实现索引的创建、删除、滚动、快照等自动化操作,帮助用户高效维护Elasticsearch集群。
bashdocker pull forthscale/elasticsearch-curator:5.5.1
Elasticsearch Curator需要通过配置文件定义具体操作,运行时需挂载配置文件到容器内。基本运行命令如下:
bashdocker run -v /本地路径/config.yml:/curator/config.yml forthscale/elasticsearch-curator:5.5.1 curator /curator/config.yml
配置文件(通常命名为config.yml)需包含Elasticsearch连接信息和具体操作任务。示例配置结构如下:
yamlclient: hosts: - elasticsearch-host:9200 timeout: 30 actions: 1: action: delete_indices description: "删除7天前的日志索引" options: ignore_empty_list: True filters: - filtertype: pattern kind: prefix value: log- - filtertype: age source: name direction: older timestring: '%Y.%m.%d' unit: days unit_count: 7
详细配置说明请参考Elasticsearch Curator官方文档
可结合cron或Docker Compose的定时任务功能实现定期执行,例如在Docker Compose中配置:
yamlversion: '3' services: curator: image: forthscale/elasticsearch-curator:5.5.1 volumes: - ./config.yml:/curator/config.yml command: curator /curator/config.yml restart: unless-stopped # 可通过外部工具(如cron)定期触发此服务





探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务