# Elasticsearch docker cluster

**URL:** <https://discuss.elastic.co/t/elasticsearch-docker-cluster/341371>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [August 22, 2023, 1:18pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-cluster/341371 "2023-08-22T13:18:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swapnadeep\_Mondal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/swapnadeep_mondal/32/92703_2.png) [@Swapnadeep\_Mondal](https://discuss.elastic.co/u/Swapnadeep_Mondal)\
**Post date:** [August 22, 2023, 1:18pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-cluster/341371/1 "2023-08-22T13:18:33Z")

</div>

Hi,

I am trying to create the Elasticsearch cluster in remote servers using the docker containers, one catch is that I am not using the docker-compose file.  
When I start the docker containers in different remote hosts they are not joining the cluster.

Here are the docker run commands we are using.

docker run -d --name esnode01 --net elastic -p 9200:9200 -p 9300:9300 -v /root/elasticsearch/esdata:/usr/share/elasticsearch/data -v /root/elasticsearch/conf/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml -v /root/elasticsearch/logs:/usr/share/elasticsearch/logs -it [docker.elastic.co/elasticsearch/elasticsearch:8.8.2](http://docker.elastic.co/elasticsearch/elasticsearch:8.8.2)

In config file I am passing necessary parameters but no luck. Can anyone provide any solution and why it is happening?

---

<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:** [September 19, 2023, 1:19pm UTC](https://discuss.elastic.co/t/elasticsearch-docker-cluster/341371/2 "2023-09-19T13:19:03Z")

</div>

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