I am not able to expose the port for zookeeper when I use the following yml file with docker-compose. The way I confirm is that container is running, but I cant telnet to port 2181. What could be wrong here?
zookeeper:
image: jplock/zookeeper:3.4.5
ports:
- “2181:2181”