How to install elatsic seach curator when working wth docker


I have started the elastic search via docker, now I wanna take snapshot via curator. When I am trying to create repository via

curl -X PUT "" -H 'Content-Type: application/json' -d '{ "type": "s3", "settings": { "bucket": "xxx", "base_path": "production", "region": "us-west-2" } }'

getting below error

{"error":{"root_cause":[{"type":"repository_exception","reason":"[s3autosnapshots] repository type [s3] does not exist"}],"type":"repository_exception","reason":"[s3autosnapshots] repository type [s3] does not exist"},"status":500}

So I tried to install elastic search plugin via:

sudo bin/elasticsearch-plugin install repository-s3

Received below error

sudo: bin/elasticsearch-plugin: command not found

So can any once help me out?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.