kafka: ERROR Unable to resolve address: host.docker.internal

Bug #1990664 reported by Vinicius Antonio do Nascimento
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Docker Images
New
Undecided
Paulo Machado

Bug Description

I'm following exactly the way it is described in the README https://hub.docker.com/r/ubuntu/kafka and can't get the ubuntu kafka container up.

ps.: i also tried changing the env var ZOOKEEPER_HOST to localhost or 0.0.0.0.

Revision history for this message
Vinicius Antonio do Nascimento (souovan) wrote :
Revision history for this message
Vinicius Antonio do Nascimento (souovan) wrote :

Adding image digest:

sha256:96b070df6c73f75e068a1e1aae25eff2acaa11673495be13911a38b943349365

Revision history for this message
Vinicius Antonio do Nascimento (souovan) wrote :

Please close this issue.

Although the README says to run like this:

```
docker run -d --name kafka-container -e TZ=UTC -p 9092:9092 -e ZOOKEEPER_HOST=host.docker.internal ubuntu/kafka:3.1-22.04_beta
```

it was only possible to run on ubuntu 20.04 like this:

```
docker run -d --name kafka -e TZ=UTC -e -p 9092:9092 -e ZOOKEEPER_HOST=172.17.0.1 -e ZOOKEEPER_PORT=2181 ubuntu/kafka:3.1-22.04_beta
```

Revision history for this message
Cristovao Cordeiro (cjdc) wrote :

This seems to be related with the system's Docker networking configurations. "host.docker.internal" is a typical DNS for those using Docker Desktop, for example.

I'll assign Paulo to this ticket anyway (but I think it can be closed)

Changed in ubuntu-docker-images:
assignee: nobody → Paulo Machado (paulomachado)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.