"kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection" ONLY DURING LISTING TOPICS
--zookeeper zookeeper:2181
seems to have worked fine
--zookeeper localhost:2181
will always fail inside the kafka container because it's not running a zookeeper server
Note: latest kafka versions support using --bootstrap-server
instead, so you could use kafka:9092
or localhost:9092
from the kafka container