I run zookeeper in a docker container on my Windows 7 machine. I use docker-compose and defined the ports: ['2181:2181'] mapping inside. The docker terminal shows me the zookeeper instance running: b3169443e7ee confluentinc/cp-zookeeper:3.3.0 2888/tcp, 0.0.0.0:2181->2181/tcp, 3888/tcp zookeeper
But when I execute netstat -an in Windows terminal I do not see the 2181 port open. Neither can I connect to zookeeper using putty telnet on localhost port 2181. What could be the problem? As far as I understand the zookeeper ports are not exposed to the host. But they should be as I included the ports mapping in the docker-compose .yaml file.