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
I have my rpk cli bash script that is used in a docker image(redpanda) with below command: /usr/bin/rpk redpanda start --mode dev-container --smp 1 --memory 1G --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 --advertise-kafka-addr PLAINTEXT://127.0.0.1:29092,OUTSIDE://host.docker.internal:9092 --schema-registry-addr 0.0.0.0:8081
I am using host.docker.internal because I want my other docker container to reach the advertised listener and it works. I am now facing an issue where from my mac, when I try to list topics and try to use broker as localhost:9092, I am not able to. I tried various combos by adding one more pair of --advertise-kafka-addr based on how yaml looks, but my cli when I add more than one listener does not work. Either the localhost works or the contianers can talk. What is the right syntax for it? Basically, I want my containers that use host.docker.internal and my laptop/mac to be able to talk to the same redpanda container. I am exposing the ports correctly I feel:
51152841f670 docker.redpanda.com/redpandadata/redpanda:v24.2.7 "sh /tmp/container_s…" 3 seconds ago Up 2 seconds 0.0.0.0:8081->8081/tcp, 8082/tcp, 0.0.0.0:9092->9092/tcp, 9644/tcp modest_aryabhata
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have my rpk cli bash script that is used in a docker image(redpanda) with below command:
/usr/bin/rpk redpanda start --mode dev-container --smp 1 --memory 1G --kafka-addr PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092 --advertise-kafka-addr PLAINTEXT://127.0.0.1:29092,OUTSIDE://host.docker.internal:9092 --schema-registry-addr 0.0.0.0:8081
I am using
host.docker.internal
because I want my other docker container to reach the advertised listener and it works. I am now facing an issue where from my mac, when I try to list topics and try to use broker aslocalhost:9092
, I am not able to. I tried various combos by adding one more pair of--advertise-kafka-addr
based on how yaml looks, but my cli when I add more than one listener does not work. Either the localhost works or the contianers can talk. What is the right syntax for it? Basically, I want my containers that usehost.docker.internal
and my laptop/mac to be able to talk to the same redpanda container. I am exposing the ports correctly I feel:Beta Was this translation helpful? Give feedback.
All reactions