Keywords: Kafka - Virtual Machines - Technical issue - Other
I have a simple application with one zookeeper docker container and one broker docker container. I've added volume management to each with the parameter
-v /kafka:/bitnami/kafka. I can create topics and run producers and consumers. However, when I stop and restart zookeeper and the broker, the topics I have created disappear. I can still see the topic subdirectory in the folder /kafka/data, but this seems to be recreated on startup. Am I missing a config flag which will stop this happening? Many thanks.