# A es node with docker dosen't got allocated

**URL:** <https://discuss.elastic.co/t/a-es-node-with-docker-dosent-got-allocated/62573>\
**Category:** Elasticsearch\
**Created:** [October 9, 2016, 9:24am UTC](https://discuss.elastic.co/t/a-es-node-with-docker-dosent-got-allocated/62573 "2016-10-09T09:24:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hulva](https://avatars.discourse-cdn.com/v4/letter/h/dfb087/32.png) [@Hulva](https://discuss.elastic.co/u/Hulva)\
**Post date:** [October 9, 2016, 9:24am UTC](https://discuss.elastic.co/t/a-es-node-with-docker-dosent-got-allocated/62573/1 "2016-10-09T09:24:20Z")

</div>

At first, i have to apologize for my poor english 😂

That's what i want:

I have a es cluster with 3 nodes, and i want replace them with the node in docker container one by one and not shut them down. That's how i think:

1. create a node with docker and let it join in the cluster
2. wait allocation complete
3. remove one of the old 3

### The problem is : the new joined one haven't got allocated 😂

## old 3:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/4/43705fcf9a96e2547ae7d7606510b54641a641bb.png)

## the docker one joined:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/a/acf01cf5b94495fb59c40040b95a005fa2e423cf.png)

## and i tried one not in docker, it got allocated immediately:

 ![](https://us1.discourse-cdn.com/elastic/original/2X/f/fd8f8b03d2c309b35de9b1d1a5608b1f307dbc61.png)

## My configurations _elasticsearch.yaml_ :

```auto
cluster.name: luva4test
node.name: luva4test-mnode-91
node.rack: luva4test-rack
path.data: /usr/share/elasticsearch/data
path.logs: /usr/share/elasticsearch/logs
bootstrap.memory_lock: true
network.host: 10.xx.xx.95
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.xx.xx.91", "10.xx.xx.95"]

```

The other two is almost the same.

### in docker one _elasticsearch.yaml_:

```auto
cluster.name: luva4test
node.name: luva4test-mnode-95docker
node.rack: luva4test-rack
path.data: /usr/share/elasticsearch/data
path.logs: /usr/share/elasticsearch/logs
bootstrap.memory_lock: true
network.host: 10.xx.xx.95
http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.xx.xx.91", "10.xx.xx.95"]

```

### The docker container config _docker-compose.yaml_ :

```auto
version: '2'

services:
  elasticsearch:
    image: elasticsearch:2.4.0
    container_name: elasticsearch
    restart: always
    network_mode: host
    volumes:
        - /data/luva/docker/docker4es/data/elasticsearch:/usr/share/elasticsearch/data
        - /data/luva/docker/docker4es/logs/elasticsearch:/usr/share/elasticsearch/logs
        - /data/luva/docker/docker4es/plugins:/usr/share/elasticsearch/plugins
        - /data/luva/docker/docker4es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml

```

---

<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:** [July 5, 2017, 10:13pm UTC](https://discuss.elastic.co/t/a-es-node-with-docker-dosent-got-allocated/62573/2 "2017-07-05T22:13:46Z")

</div>


