Comments (14)
Heres an example of how I installed the head plugin
- Start container with volume for plugins and es as its name
docker run -d -P -p 9200:9200 -p 9300:9300 --name "es" -v "$PWD/es/plugins":/usr/share/elasticsearch/plugins elasticsearch
- Install head plugin
docker exec es /usr/share/elasticsearch/bin/plugin -install mobz/elasticsearch-head
Hope this helps
from elasticsearch.
So how to install plugin?
from elasticsearch.
@wgriffiths the second command depends on your elasticsearch version
if you are using 2.0
then use the same command without the dash character before install
docker exec es /usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head
Hope this helps
Update
Edited the command after this comment
So I think the command becomes docker exec es /usr/share/elasticsearch/bin/elasticsearch-plugin install mobz/elasticsearch-head
Thanks everyone and hopes it helps
from elasticsearch.
In case anyone else is running the latest container
docker pull elasticsearch
Somehow the command was changed to /usr/share/elasticsearch/bin/elasticsearch-plugin
5.2 breaks tons of plugins including their own "Marvel" plugin.
from elasticsearch.
I ran into this same problem with elasticsearch:5.6
. And #32 (comment) indeed was the solution.
For prosperities sake, here's how I debugged the problem:
I had a docker file
FROM elasticsearch:5.6
COPY my-plugin.zip /
RUN /usr/share/elasticsearch/bin/plugin install file:///my-plugin.zip
But, I would get the following
$ docker build . -t elasticsearch:my-plugin
Sending build context to Docker daemon 24.37MB
Step 1/5 : FROM elasticsearch:5.6
---> 9b44bde11dd8
Step 2/5 : COPY my-plugin.zip /
---> Using cache
---> a27fd93eddb0
Step 3/5 : RUN /usr/share/elasticsearch/bin/plugin install file:///my-plugin.zip
---> Running in 78ccd46dcc6b
/bin/sh: 1: /usr/share/elasticsearch/bin/plugin: not found
The command '/bin/sh -c /usr/share/elasticsearch/bin/plugin install file:///my-plugin.zip' returned a non-zero code: 127
So I took the intermediate hash a27fd93eddb0
and did the following:
$ docker run --rm --it a27fd93eddb0 bash
[root@43211f8792a3:/usr/share/elasticsearch]# ls -h /usr/share/elasticsearch/bin/
elasticsearch elasticsearch-plugin elasticsearch-translog
elasticsearch-keystore elasticsearch-systemd-pre-exec elasticsearch.in.sh
Thar she blows! It's elasticsearch-plugin
not plugin
.
See also: https://stackoverflow.com/a/26222636/2601179
from elasticsearch.
After the last comment here, an official blog post was published:
https://www.elastic.co/blog/elasticsearch-docker-plugin-management
Hope this helps
from elasticsearch.
In later versions /usr/share/elasticsearch/bin/plugin
has been changed to /usr/share/elasticsearch/bin/elasticsearch-plugin
.
from elasticsearch.
Looks like the change from plugin
-> elasticsearch-plugin
was back in 5.0. Note that /usr/share/elasticsearch/bin/
is in the PATH on all of the images, so you can use plugin
on the 1 and 2 series and elasticsearch-plugin
on 5 and up.
from elasticsearch.
@wgriffiths the second command depends on your elasticsearch version
if you are using2.0
then use the same command without the dash character beforeinstall
docker exec es /usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head
Hope this helps
Thank you, vefy helpful for me.
from elasticsearch.
That walkthrough is for dockerfile/elasticsearch
, not the official image elasticsearch
. You will probably just need to change all the container paths from /data
to /usr/share/elasticsearch/data
. I am not entirely sure on the config file placement since there is a /usr/share/elasticsearch/config
directory.
from elasticsearch.
You can use docker exec
or create your own Docker image, that overrides this one.
Then refer to traditional elastic documentation to see the plugin installation syntax.
from elasticsearch.
@wgriffiths , Thanks!
from elasticsearch.
I'm suggest to append this link ( https://www.elastic.co/blog/elasticsearch-docker-plugin-management ) in README
from elasticsearch.
The executable path is correct, but the plugins themselves are not found. Docs say these plugins were moved into X-Pack: https://www.elastic.co/guide/en/marvel/current/installing-marvel.html
from elasticsearch.
Related Issues (20)
- docker-compose error HOT 1
- ware house configuration issue HOT 1
- Unable to access 'path.scripts' HOT 1
- Please consider un-deprecating this image HOT 2
- Cannot edit any file inside the container. vi editor is not working HOT 1
- High CPU usage HOT 1
- DEPRECATED or not? HOT 3
- Any plan on 6.x alpine image release? HOT 3
- ES fails to connect to master node after IP address changed HOT 1
- Update to 7.9.2 HOT 2
- Elasticsearch on Docker Hub outdated HOT 1
- Apple M1 support HOT 1
- Security vulnerabilities with Aquasec HOT 2
- can not run by 7.14.1 HOT 3
- ll
- elasticsearch 6 on arm64v8 HOT 1
- elasticsearch never work continuously HOT 1
- Supporting Cosign Sigstore signing workflow HOT 2
- Broken update process HOT 6
- ARM missing on 8.11.1 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch.