# Sebp/elk how to run multiple Elastic Stacks in Docker containers on the same host

**URL:** <https://discuss.elastic.co/t/sebp-elk-how-to-run-multiple-elastic-stacks-in-docker-containers-on-the-same-host/201979>\
**Category:** Elasticsearch\
**Created:** [October 2, 2019, 2:48pm UTC](https://discuss.elastic.co/t/sebp-elk-how-to-run-multiple-elastic-stacks-in-docker-containers-on-the-same-host/201979 "2019-10-02T14:48:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmiklas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmiklas/32/50730_2.png) [@kmiklas](https://discuss.elastic.co/u/kmiklas)\
**Post date:** [October 2, 2019, 2:48pm UTC](https://discuss.elastic.co/t/sebp-elk-how-to-run-multiple-elastic-stacks-in-docker-containers-on-the-same-host/201979/1 "2019-10-02T14:48:35Z")

</div>

How can multiple Docker containers of the sebp/elk image be run on the same host?

I've got a Stack running with the following command, default ports:

`sudo docker run --ulimit nofile=65536:65536 -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk_1 elastic.example.com/sebp/elk`

..I tried simply changing the ports, like so:

`sudo docker run --ulimit nofile=65536:65536 -p 5602:5602 -p 9201:9201 -p 5045:5045 -it --name elk_2 elastic.example.com/sebp/elk`

..but no luck.

I suspect a port conflict. Do I need to change any other ports?

Perhaps best to use Docker compose? Thx Keith :^)

---

<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:** [October 30, 2019, 2:48pm UTC](https://discuss.elastic.co/t/sebp-elk-how-to-run-multiple-elastic-stacks-in-docker-containers-on-the-same-host/201979/2 "2019-10-30T14:48:36Z")

</div>

Closed on October 30, 2019, 2:48pm UTC

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