mirror of https://github.com/apache/kafka.git
MINOR: add docker usage documentation link in README.md (#15600)
We have a detail usage guide for running Kafka in docker. However, it might be easy for people to miss it if they only scan through the README. This PR add a basic example command for quick start and link directing users to the detailed usage guide Reviewers: Luke Chen <showuon@gmail.com>
This commit is contained in:
parent
3e64f8fa1b
commit
ae44a08051
10
README.md
10
README.md
|
@ -92,15 +92,25 @@ fail due to code changes. You can just run:
|
|||
|
||||
### Running a Kafka broker in KRaft mode
|
||||
|
||||
Using compiled files:
|
||||
|
||||
KAFKA_CLUSTER_ID="$(./bin/kafka-storage.sh random-uuid)"
|
||||
./bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties
|
||||
./bin/kafka-server-start.sh config/kraft/server.properties
|
||||
|
||||
Using docker image:
|
||||
|
||||
docker run -p 9092:9092 apache/kafka:3.7.0
|
||||
|
||||
### Running a Kafka broker in ZooKeeper mode
|
||||
|
||||
Using compiled files:
|
||||
|
||||
./bin/zookeeper-server-start.sh config/zookeeper.properties
|
||||
./bin/kafka-server-start.sh config/server.properties
|
||||
|
||||
>Since ZooKeeper mode is already deprecated and planned to be removed in Apache Kafka 4.0, the docker image only supports running in KRaft mode
|
||||
|
||||
### Cleaning the build ###
|
||||
./gradlew clean
|
||||
|
||||
|
|
Loading…
Reference in New Issue