Couldn't connect to Docker Aerospike from host Couldn't connect to Docker Aerospike from host docker docker

Couldn't connect to Docker Aerospike from host


The IP 172.17.0.2 is only accessible within Docker (therefore you can use another container to connect). In case you want to connect from your host you need to map the respective port.

docker run -d --name aerospike -p 3000:3000 aerospike/aerospike-server

Afterwards you can use:

AerospikeClient client = new AerospikeClient("localhost", 3000);