I am inside docker and I have installed zookeeper and trying to test it using telnet But it is not working
$ telnet localhost 2181
Trying ::1...
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
I tried these also
telnet 127.0.0.1 2181
telnet 172.17.0.2 2181
But same error.
netstat status
# netstat -tlpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
Please help.