Run docker-compose
docker-compose up -d
Access the container
docker exec -it kakfa /bin/sh
Navigate the container directory
cd /opt/bitnami/kafka/bin
Create a topic
kafka-topics.sh --create --bootstrap-server localhost:9092 --topic example