Docker image including latest version of Alpine running Elastic Search Curator as CRON daily task
docker run -d --name {container-name} --link {elastic-search-container-name}:elasticsearch eldersoss/curator-docker --host {elastic-search-host} --port {elastic-search-port} {curator-command}
docker run
- reference
-d
- reference
--name
- reference
--link
- reference
--host
- reference
--port
- reference
{curator-command}
- reference
Example:
docker run -d --name curator_cron --link dockerelasticsearchkibanacurator_log_1:elasticsearch eldersoss/curator-docker --host elasticsearch --port 9200 delete indices --older-than 10 --timestring '%Y.%m.%d' --time-unit days
Example usage in multi-container setup
Current documentation is working with:
Docker version 1.11.1, build 5604cbe https://github.com/docker/docker/releases
Alpine 3.3.3 https://hub.docker.com/_/alpine/
ElasticSearch 2.3.3 https://hub.docker.com/_/elasticsearch/
Kibana 4.5.1 https://hub.docker.com/_/kibana/
Curator 3.5.1 https://pypi.python.org/pypi/elasticsearch-curator/3.5.1