On Windows and macOS its possible to connect to a Docker container from within another one with the hostname host.docker.internal. On Linux however, this trick does not work and causes the application to stop working.
A workaround for the time being is to add 172.17.0.1 host.docker.internal to the /etc/hosts file on Linux.
On Windows and macOS its possible to connect to a Docker container from within another one with the hostname
host.docker.internal
. On Linux however, this trick does not work and causes the application to stop working.A workaround for the time being is to add
172.17.0.1 host.docker.internal
to the/etc/hosts
file on Linux.