How do I install an elasticsearch plugin like 'ingest-attachment' in an elk docker container?
The use of a configuration file like 'elasticsearch-plugins.yml' would be nice. But other suggestions are welcome. Maybe an environment variable with a list of plugins?
First approach was:
Providing a configuration file 'elasticsearch-plugins.yml' . But I got an error (see below). And the documentation says, the use of this configuration file is supported only on 'official' images: Manage plugins using a configuration file | Elasticsearch Plugins and Integrations [master] | Elastic
* Stopping Elasticsearch Server
...done.
uncaught exception in thread [main]
org.elasticsearch.bootstrap.BootstrapException: org.elasticsearch.ElasticsearchException: Can only use [elasticsearch-plugins.yml] config file with distribution type [docker]
Likely root cause: org.elasticsearch.ElasticsearchException: Can only use [elasticsearch-plugins.yml] config file with distribution type [docker]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:352)
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:166)
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:157)
at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:81)
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:112)
at org.elasticsearch.cli.Command.main(Command.java:77)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:122)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:80)
For complete error details, refer to the log at /var/log/elasticsearch/elasticsearch.log