# No logstash directory in /usr/share

**URL:** <https://discuss.elastic.co/t/no-logstash-directory-in-usr-share/218851>\
**Category:** Logstash\
**Created:** [February 11, 2020, 7:21pm UTC](https://discuss.elastic.co/t/no-logstash-directory-in-usr-share/218851 "2020-02-11T19:21:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin5617](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@kevin5617](https://discuss.elastic.co/u/kevin5617)\
**Post date:** [February 11, 2020, 7:21pm UTC](https://discuss.elastic.co/t/no-logstash-directory-in-usr-share/218851/1 "2020-02-11T19:21:46Z")

</div>

I am running Logstash with Docker and after I pull the docker image, there is no logstash directory in /usr/share to add config files.

---

<div class="post-metadata">

**Author:** ![ITIC](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@ITIC](https://discuss.elastic.co/u/ITIC)\
**Post date:** [February 12, 2020, 7:03am UTC](https://discuss.elastic.co/t/no-logstash-directory-in-usr-share/218851/2 "2020-02-12T07:03:43Z")

</div>

Hi

I'm assuming you are inside the container. Which image did you pull? Which version? How are you running it?.

I´m running `docker.elastic.co/logstash/logstash:7.5.0` and there is a /usr/share/logstash direcotry in there.

Hope this helps

---

<div class="post-metadata">

**Author:** ![kevin5617](https://avatars.discourse-cdn.com/v4/letter/k/46a35a/32.png) [@kevin5617](https://discuss.elastic.co/u/kevin5617)\
**Post date:** [February 12, 2020, 2:37pm UTC](https://discuss.elastic.co/t/no-logstash-directory-in-usr-share/218851/3 "2020-02-12T14:37:01Z")

</div>

Hi. I've never used docker before. So when you say "I'm assuming you are inside the container". Do you mean that I won't find it on the host machine I'm starting the Docker container from?

And I'm running 7.5.2.

---

<div class="post-metadata">

**Author:** ![ITIC](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@ITIC](https://discuss.elastic.co/u/ITIC)\
**Post date:** [February 13, 2020, 7:27am UTC](https://discuss.elastic.co/t/no-logstash-directory-in-usr-share/218851/4 "2020-02-13T07:27:18Z")

</div>

Hi @kevin5617

What you did was pull an image, but it doesn't seem like you are running a container from it, yet.

I'd suggest you start reading on the `run` command [here](https://docs.docker.com/engine/reference/run/). You are in for a treat!

Indeed, one of the nice things about containers i that a whole application is (you guessed it) contained inside, thus having no effect on the host: it does not write on the host's filesystem, it doesn't use its libraries, etc... You can think of a container as a micro virtual machine (it is not, but you can think of it that way for now).

So, what you have to do is `run` your container and then get inside it with `exec -ti` (more [reading](https://docs.docker.com/engine/reference/commandline/exec/) for you).

Now, beware. Once you stop and delete your conatiner, all changes you made inside it will be gone, thats why you'll need to read on `volumes` and `bind mounts` in order to be able to make your logstash pipelines persistent (now you'll be writing on your host's filesystem).

Hope this helps you get started on your `docker` journey.

---

<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:** [March 12, 2020, 7:27am UTC](https://discuss.elastic.co/t/no-logstash-directory-in-usr-share/218851/5 "2020-03-12T07:27:21Z")

</div>

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