A simple Docker image for Apache Kafka.
docker run -p 9092:9092 foxcapades/apache-kafka:3.4.0
The following options are provided as part of the Docker container and are not part of Apache Kafka.
| Option | Type | Default |
KAFKA_SERVER_PROPERTIES_FILE | string | /opt/kafka/server.properties |
KAFKA_CLUSTER_ID | string | <random uuid> |
server.propertiesAll Kafka configuration options listed in the official documentation may be configured using environment variables. The environment variable to set for a specific option may be looked up in the server.properties.sh file, or by performing the following mapping steps:
.) characters with underscore (_) charactersKAFKA_Property to Environment Mapping Snippet
fun mapPropertyNameToEnvironmentKey(property: String) =
"KAFKA_" + property.uppercase().replace('.', '_')
The following defaults are set if no environment variables are specified.
| Property | Default |
advertised.listeners | PLAINTEXT://localhost:9092 |
controller.listener.names | CONTROLLER |
controller.quorum.voters | 1@localhost:9093 |
inter.broker.listener.name | PLAINTEXT |
listeners | PLAINTEXT://:9092,CONTROLLER://:9093 |
log.dirs | /tmp/kafka |
node.id | 1 |
offsets.topic.replication.factor | 1 |
process.roles | broker,controller |
transaction.state.log.min.isr | 1 |
transaction.state.log.replication.factor | 1 |
Content type
Image
Digest
sha256:6c4e598b3…
Size
298.2 MB
Last updated
over 3 years ago
docker pull foxcapades/apache-kafka