# Add docker container to outside network

**URL:** <https://discuss.elastic.co/t/add-docker-container-to-outside-network/182449>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 23, 2019, 1:31pm UTC](https://discuss.elastic.co/t/add-docker-container-to-outside-network/182449 "2019-05-23T13:31:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bert\_vervaele](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bert_vervaele/32/36142_2.png) [@bert\_vervaele](https://discuss.elastic.co/u/bert_vervaele)\
**Post date:** [May 23, 2019, 1:31pm UTC](https://discuss.elastic.co/t/add-docker-container-to-outside-network/182449/1 "2019-05-23T13:31:14Z")

</div>

Hi,

I'm running an Elastic cluster on my internal network.  
Now I would like to spin up some dockers when load gets heavy.  
When I try to spin these up I can't seem to get them into the existing cluster.  
I always get a "failed to send join request to the master"

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 23, 2019, 9:37pm UTC](https://discuss.elastic.co/t/add-docker-container-to-outside-network/182449/2 "2019-05-23T21:37:37Z")

</div>

What version?  
What does your config look like?  
What do the logs show?

Providing as much info as possible makes it heaps easier for us to help you 🙂

---

<div class="post-metadata">

**Author:** ![bert\_vervaele](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bert_vervaele/32/36142_2.png) [@bert\_vervaele](https://discuss.elastic.co/u/bert_vervaele)\
**Post date:** [May 24, 2019, 6:14am UTC](https://discuss.elastic.co/t/add-docker-container-to-outside-network/182449/3 "2019-05-24T06:14:40Z")

</div>

This is the compose file I use

```
> version: '2.2'
> services:
> elasticsearch:
> image: docker.elastic.co/elasticsearch/elasticsearch:6.5.4
> container_name: elasticsearch
> environment:
> - cluster.name=DMS
> - bootstrap.memory_lock=true
> - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
> - "discovery.zen.ping.unicast.hosts=10.3.1.202"
>       
> ulimits:
> memlock:
> soft: -1
> hard: -1
> volumes:
> - esdata1:/usr/share/elasticsearch/data
> ports:
> - 10.3.1.201:9201:9200
> - 10.3.1.201:9301:9300
> network_mode: bridge
> 
> volumes:
> esdata1:
> driver: local
> 
> networks:
> esnet:

```

And this is the logging I get. 502-0 Is the name of an other node in my network.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/5/65d3d149c1d4d176ee286ee50c8a0213beabeb90.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 24, 2019, 3:41pm UTC](https://discuss.elastic.co/t/add-docker-container-to-outside-network/182449/4 "2019-05-24T15:41:34Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them.

---

<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:** [June 21, 2019, 3:41pm UTC](https://discuss.elastic.co/t/add-docker-container-to-outside-network/182449/5 "2019-06-21T15:41:41Z")

</div>

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