spotify / docker-kafka

Kafka (and Zookeeper) in Docker
Apache License 2.0
1.4k stars 643 forks source link

Run kafka with an external volume #86

Open yosoyfucho opened 6 years ago

yosoyfucho commented 6 years ago

Hi

I'm newbie to kafka.

I run this docker, and in almost three hours my docker lvs get to 100% making it unavailable

How can I change this docker to an external volume to not exhaust my docker?

StefanSchrass commented 5 years ago

I run it with

docker run -d --name=kafka -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=localhost --env ADVERTISED_PORT=9092 -v d:/Data/docker-volumes/kafka-logs:/tmp/kafka-logs //volume host_path:container_path spotify/kafka