# Reload pipeline from docker image

**URL:** <https://discuss.elastic.co/t/reload-pipeline-from-docker-image/169599>\
**Category:** Logstash\
**Created:** [February 22, 2019, 2:58pm UTC](https://discuss.elastic.co/t/reload-pipeline-from-docker-image/169599 "2019-02-22T14:58:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyllegaard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hyllegaard/32/41139_2.png) [@Hyllegaard](https://discuss.elastic.co/u/Hyllegaard)\
**Post date:** [February 22, 2019, 2:58pm UTC](https://discuss.elastic.co/t/reload-pipeline-from-docker-image/169599/1 "2019-02-22T14:58:43Z")

</div>

Hi.  
we are using the Docker version of logstash. Is it possible to make it reload the configuration from the docker mounted volume. i tried using -e "CONFIG\_RELOAD\_AUTOMATiC=true" on the docker run command, but that does not do anything.

Any suggestions?

Regards  
Jens

---

<div class="post-metadata">

**Author:** ![BKG](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bkg/32/43591_2.png) [@BKG](https://discuss.elastic.co/u/BKG)\
**Post date:** [March 21, 2019, 12:44pm UTC](https://discuss.elastic.co/t/reload-pipeline-from-docker-image/169599/2 "2019-03-21T12:44:45Z")

</div>

You don't use `-e` as per [this page](https://www.elastic.co/guide/en/logstash/current/reloading-config.html):

Also, FYI, there is a lot of ambiguity between config, settings and pipelines.

"settings" is your logstash.yml. \<- this **can't** be reloaded automatically

Pipelines can be reloaded automatically. These are your .conf files but are referred to as your config files when talking about auto-reloading.

You need to mount your pipelines directory in a docker volume so you can edit them on the host. When you save the config, the docker image sees the change and reloads logstash's config.

You could try something like this:

```
BASE_DIR="/home/myusername/Logging/containers/logstash"

LOCAL_CONFIG=$BASE_DIR/config/
LOCAL_PIPELINE=$BASE_DIR/pipeline/
REMOTE_BASE=/usr/share/logstash
REMOTE_CONFIG=$REMOTE_BASE/config/
REMOTE_PIPELINE=$REMOTE_BASE/pipeline/
# RUN
docker run -it \
	--name logstash \
	-v $LOCAL_PIPELINE:$REMOTE_PIPELINE \
	-v $LOCAL_CONFIG:$REMOTE_CONFIG \
	-p 5044:5045 \
	-p 514:5144 \
	docker.elastic.co/logstash/logstash:6.6.1 \
    --config.reload.automatic
```

---

<div class="post-metadata">

**Author:** ![Hyllegaard](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hyllegaard/32/41139_2.png) [@Hyllegaard](https://discuss.elastic.co/u/Hyllegaard)\
**Post date:** [March 21, 2019, 1:06pm UTC](https://discuss.elastic.co/t/reload-pipeline-from-docker-image/169599/3 "2019-03-21T13:06:18Z")

</div>

Thank you for your reply.  
It was the pipeline configuration that I wanted to be reloaded.  
Somehow it started working, even with -e "CONFIG\_RELOAD\_AUTOMATIC=true".

Regards

Jens

---

<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:** [April 18, 2019, 1:06pm UTC](https://discuss.elastic.co/t/reload-pipeline-from-docker-image/169599/4 "2019-04-18T13:06:34Z")

</div>

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