xxxxxxxxxx
docker run --rm alpine ip route | awk 'NR==1 {print $3}'
xxxxxxxxxx
host.docker.internal
# Above is the preferred / reliable way (On windows at least)
# Below is not always true
172.17.0.1
docker host ip
xxxxxxxxxx
It depends on your docker images.
I saw 172.40.0.42 smh like that.
Now you can learn with `docker inspect <image id|name>` command.
docker ps
docker inspect <container-id> | grep IpAddress
If your purpose is request among docker images
you have to use host.docker.internal instead of localhost.
xxxxxxxxxx
Once you have started your cluster, you can use Conduktor to easily manage it.
Just connect against localhost:9092.
If you are on Mac or Windows and want to connect from another container,
use host.docker.internal:29092