Hi Florian,

what do you need “host.docker.internal” for?

I usually use the auto discovery of the IP address.
Sometimes, when I change the network, I must restart the backend, but then it 
will automatically find the correct IP address again.

Cheers,
Philipp

Von: Florian Micklich <[email protected]>
Datum: Dienstag, 22. November 2022 um 18:03
An: StreanPipes Dev <[email protected]>
Betreff: Add functionality of host.docker.internal for linux users?
Hi,

unlike Windows or Mac, the  host.docker.internal command is not working by 
default in Linux.
A solution would be to add following code snippet the the docker-compose files 
[1].


```
    extra_hosts:
      - "host.docker.internal:host-gateway"
```

But this requires at least docker version 20.10+.
I think on our website the required docker version is 1.17.
Should we take this step and increase the version requirements to add this 
functionality?


Greetings
Florian

[1] https://github.com/docker/for-linux/issues/264#issuecomment-784985736

Reply via email to