Skip to content

Instantly share code, notes, and snippets.

@alanchavezgar
Created June 21, 2021 16:00
Show Gist options
  • Save alanchavezgar/bdfa78c7fc82dae1dde126f867027c65 to your computer and use it in GitHub Desktop.
Save alanchavezgar/bdfa78c7fc82dae1dde126f867027c65 to your computer and use it in GitHub Desktop.
Run dockerized kafka
docker run --name zookeeper -p 2181:2181 --env ALLOW_ANONYMOUS_LOGIN=yes -d docker.io/bitnami/zookeeper:3
docker run --name kafka -p 9092:9092 --env KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE=true --env KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 --env ALLOW_PLAINTEXT_LISTENER=yes --link=zookeeper -d docker.io/bitnami/kafka:2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment