# Docker Aerospike Cluster

**URL:** <https://discuss.aerospike.com/t/docker-aerospike-cluster/6049>\
**Category:** Configuration\
**Tags:** docker\
**Created:** [March 22, 2019, 3:01pm UTC](https://discuss.aerospike.com/t/docker-aerospike-cluster/6049 "2019-03-22T15:01:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![florianeichin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/florianeichin/32/1090_2.png) [@florianeichin](https://discuss.aerospike.com/u/florianeichin)\
**Post date:** [March 22, 2019, 3:01pm UTC](https://discuss.aerospike.com/t/docker-aerospike-cluster/6049/1 "2019-03-22T15:01:08Z")

</div>

I use the following config to get my cluster up, but it fails with the following error:

`Mar 22 2019 16:48:48 GMT: WARNING (socket): (socket.c:805) Error while binding to 172.16.43.5:3002: 99 (Cannot assign requested address)`

If using --net host I get the following error: `cat: /sys/class/net/eth0/operstate: No such file or directory`

```auto
Configuration:
    service {
            user root
            group root
            paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
            pidfile /var/run/aerospike/asd.pid
            service-threads 24
            transaction-queues 4
            transaction-threads-per-queue 4
            proto-fd-max 15000

    }

  

    network {
        service {
            address any
            access-address 172.16.43.5
            port 3000
        }

        heartbeat {
            mode mesh

            port 3002 # Heartbeat port for this node.
            address 172.16.43.5
            # List one or more other nodes, one ip-address & port per line:
            # Please note that we do not have the address of the incoming node in this list
            mesh-seed-address-port 172.16.43.7 3002
            mesh-seed-address-port 172.16.43.5 3002
            # Having the node itself as a mesh seed node is allowed
            # and helps with consistent configuration files across the cluster

            interval 250
            timeout 10
        }

        fabric {
            port 3001
        }

        info {
            port 3003
        }
    }

    namespace test {
                                   # Data in memory without persistance namespace
        replication-factor 2
        memory-size 32G
        default-ttl 30d # 30 days, use 0 to never expire/evict.
        storage-engine memory
    }

```
