# Logstash on Docker: how to run a pipeline?

**URL:** <https://discuss.elastic.co/t/logstash-on-docker-how-to-run-a-pipeline/224204>\
**Category:** Logstash\
**Created:** [March 19, 2020, 12:42am UTC](https://discuss.elastic.co/t/logstash-on-docker-how-to-run-a-pipeline/224204 "2020-03-19T00:42:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fdbatista](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fdbatista/32/64703_2.png) [@fdbatista](https://discuss.elastic.co/u/fdbatista)\
**Post date:** [March 19, 2020, 12:42am UTC](https://discuss.elastic.co/t/logstash-on-docker-how-to-run-a-pipeline/224204/1 "2020-03-19T00:42:58Z")

</div>

Hello, community.

I have started digging around Logstash and I am trying to use docker image for it.  
The thing is that every tutorial I have seen just shows how to integrate all components within a docker-compose file, which is very straightforward, but I haven't seen yet how to run a pipeline, because the bin`/logstash -f` command is intended for use in local installation, not on a dockerized one, and I am getting "another instance using the configured data directory" error.

So, once I have Logstash and ElasticSearch up and running in docker containers, how do I run a pipeline?

---

<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 16, 2020, 12:42am UTC](https://discuss.elastic.co/t/logstash-on-docker-how-to-run-a-pipeline/224204/2 "2020-04-16T00:42:59Z")

</div>

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