On Linux, we can't automatically resolve host.docker.internal
, we need to provide some arguments to the docker run
command
--add-host=host.docker.internal:host-gateway
Where host-gateway
is the IP address of the docker daemon.
To find out what's the ip address of our docker daemon, we have to check out the interface associated to it, via ifconfig -a
(that should be named docker0
as well)