You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/kafka.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,15 +56,15 @@ Create a `KafkaContainer` to use it in your tests:
56
56
57
57
### withNetworkAliases
58
58
59
-
The first alias host name defined using `withNetworkAliases` configures port 9092. Example for `kafka:9092`:
59
+
The first alias host name defined using `withNetworkAliases` configures port 9092 on the network set by `withNetwork`. Example for `kafka:9092`:
60
60
61
61
<!--codeinclude-->
62
62
[Creating a KafkaContainer](../../modules/kafka/src/test/java/org/testcontainers/kafka/KafkaContainerTest.java) inside_block:registerAlias
63
63
<!--/codeinclude-->
64
64
65
65
This works with `org.testcontainers.kafka.KafkaContainer` and `org.testcontainers.kafka.ConfluentKafkaContainer` but not with deprecated `org.testcontainers.containers.KafkaContainer`.
66
66
67
-
It only works if `withListener` is not used.
67
+
It only works if `withListener` is not used and `KAFKA_BROKER_ID` environment variable is not set.
0 commit comments