# Elasticsearch2.0/Docker - install a plugin from file problem

**URL:** <https://discuss.elastic.co/t/elasticsearch2-0-docker-install-a-plugin-from-file-problem/35293>\
**Category:** Elasticsearch\
**Created:** [November 23, 2015, 10:27am UTC](https://discuss.elastic.co/t/elasticsearch2-0-docker-install-a-plugin-from-file-problem/35293 "2015-11-23T10:27:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulkeogh](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@paulkeogh](https://discuss.elastic.co/u/paulkeogh)\
**Post date:** [November 23, 2015, 10:27am UTC](https://discuss.elastic.co/t/elasticsearch2-0-docker-install-a-plugin-from-file-problem/35293/1 "2015-11-23T10:27:49Z")

</div>

Hi,

I am writing a Dockerfile for our internal ELK environment and I am stuck on installing a plugin from file. I have a command in the Dockerfile of;

RUN ["/usr/share/elasticsearch/bin/plugin", "install", "file:docker/packages/elasticsearch-head-master.zip"]

But it gives an error of;

Step 30 : RUN /bin/bash -c /usr/share/elasticsearch/bin/plugin install -v file:docker/packages/elasticsearch-head-master.zip  
---\> Running in b8528f431ee0  
-\> Installing from file:docker/packages/elasticsearch-head-master.zip...  
Trying file:docker/packages/elasticsearch-head-master.zip ...  
Failed: FileNotFoundException[docker/packages/elasticsearch-head-master.zip (No such file or directory)]

The file is named correctly and is in the correct directory.

Any suggestions ? - I do not want to install from the Internet for production reasons.

Thanks,

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 23, 2015, 10:43am UTC](https://discuss.elastic.co/t/elasticsearch2-0-docker-install-a-plugin-from-file-problem/35293/2 "2015-11-23T10:43:33Z")

</div>

Just unpack the plugin zip into a directoryunder `path.plugins` , which has the plugin name, something like

```auto
mkdir $ES_PATH_PLUGINS
cd $ES_PATH_PLUGINS
mkdir myplugin
cd myplugin
unzip myplugin.zip

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:36pm UTC](https://discuss.elastic.co/t/elasticsearch2-0-docker-install-a-plugin-from-file-problem/35293/3 "2017-07-05T23:36:38Z")

</div>


