I am a newbie in Docker, I want to install plugins in my container of elasticsearch, in this case they are:
- analysis-icu
- analysis-phonetic
I know that in a traditional way it would be like this:
- /usr/share/elasticsearch in this directory
sudo bin/elasticsearch-plugin install analysis-icu
sudo bin/elasticsearch-plugin install analysis-phonetic
➜ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
f7aaead8fd09 elasticsearch:7.0.1 "/usr/local/bin/dock…" 2 days ago Up 10 minutes 0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp elasticsearch
Any ideas or suggestions?
Best Answer
If you are using Dockerfile try something link below
After that you can build
Here is good reference https://www.elastic.co/blog/elasticsearch-docker-plugin-management .
If you want to install plugin directly from docker follow below steps.
docker exec -it <id> /bin/bash
But remember this way it is not persistent.