sudo docker run -p 61616:61616 -it dannyhazelcast/hzcmd /bin/bash
open port 61616, you will need to be able to receive incoming tcp connection on port 61616 in this container.
Communication between this docker container and Jvm's running on remote boxes, is done through an ActiveMQ server running in this container, by default listening on port 61616 for incoming connections.
hzCmd attempts to discover the public ip address of this container container. by connecting to the service
The ActiveMQ server / broker will run in this container. if the contain will not have access to the internet, or is running in a private network, to explicitly set the broker ip address, to the ip address of this container use the command
hz broker -ip 127.0.0.1
add this command to your script, before attempting to instantiate a cluster