# Problems installing plugins with Docker and no Internet

**URL:** <https://discuss.elastic.co/t/problems-installing-plugins-with-docker-and-no-internet/208865>\
**Category:** Logstash\
**Tags:** docker\
**Created:** [November 21, 2019, 11:19am UTC](https://discuss.elastic.co/t/problems-installing-plugins-with-docker-and-no-internet/208865 "2019-11-21T11:19:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonny3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonny3/32/50275_2.png) [@Jonny3](https://discuss.elastic.co/u/Jonny3)\
**Post date:** [November 21, 2019, 11:19am UTC](https://discuss.elastic.co/t/problems-installing-plugins-with-docker-and-no-internet/208865/1 "2019-11-21T11:19:13Z")

</div>

Hello everyone, I'm working in a ELK system with docker and now I'm installing the Logstash plugins Grok, Mutate and Aggregate but I have the problem that my docker image has not access to Internet so I can't use the simple installing command:

> logstash-plugin install logstash-filter-mutate

I'm trying to configure the Dockerfile of Logstash to install the plugin from a .zip but it doesn't work. I'm working with ELK since a month and I don't know if I'm doing something wrong, I put my Dockerfile content and if you have some recommendations or advices about it I'm will be so grateful.

> COPY ...\plugins\logstash-filter-mutate.zip /bin //Even this doesn't work  
> RUN bin/logstash-plugin install file:///logstash-filter-mutate.zip

---

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)\
**Post date:** [November 21, 2019, 9:03pm UTC](https://discuss.elastic.co/t/problems-installing-plugins-with-docker-and-no-internet/208865/2 "2019-11-21T21:03:14Z")

</div>

The questions sounds more like Dockerfile syntax than logstash, I think the question you have is answered here : [https://stackoverflow.com/questions/46309423/dockerfile-copy-from-a-windows-file-system-to-a-docker-container](https://stackoverflow.com/questions/46309423/dockerfile-copy-from-a-windows-file-system-to-a-docker-container)  
Thanks  
Julien

---

<div class="post-metadata">

**Author:** ![Jonny3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonny3/32/50275_2.png) [@Jonny3](https://discuss.elastic.co/u/Jonny3)\
**Post date:** [November 22, 2019, 11:05am UTC](https://discuss.elastic.co/t/problems-installing-plugins-with-docker-and-no-internet/208865/3 "2019-11-22T11:05:43Z")

</div>

Finally, the company where I'm doing the practices have a restricted network, I have been doing tests with that and in the end, I'm able to install the plugins in the Logstash image in an easy way, but I don't understand what has to happen now, does the ELK system detect the new plugins without restarting anything? (I use docker-compose so I start all at the same time) and I understand that in Kibana I should see the new logs loaded with the variables created with the filters using the installed plugins.

I have listed the installed plugins with:

> logstash-plugin list

Greetings and thanks.

---

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)\
**Post date:** [November 22, 2019, 8:34pm UTC](https://discuss.elastic.co/t/problems-installing-plugins-with-docker-and-no-internet/208865/4 "2019-11-22T20:34:44Z")

</div>

I am not sure I understand the question so unsure if this will help :  
If you built a docker image with an additional plugin, and your container is recreated based on that new image/tag... Then logstash will have the plugins - you can connect in the container and check `docker run --rm -it yourimage:yourtag /bin/bash` or `docker exec -it <running_container> /bin/bash` then bin/logstash-plugin list  
If you are not sure if your container is based on the right image - `docker inspect <container_id>`... And if you overwrite an image with same name/tag when you build it, you should recreate the container too

---

<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:** [December 20, 2019, 8:34pm UTC](https://discuss.elastic.co/t/problems-installing-plugins-with-docker-and-no-internet/208865/5 "2019-12-20T20:34:51Z")

</div>

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