many-plastic-16454
07/15/2022, 10:40 PMdocker run -it --rm --add-host=host.docker.internal:host-gateway debian:latest bash
and on the host side, I'm running python3 -m http.server 9876
. So on the container, I installed telnet and telnet host.docker.internal 9876
but unable to connect. What am I missing?fast-garage-66093
07/16/2022, 1:01 AM--add-host
option; the name should already be defined inside the container. And on macOS the address will always be 192.168.5.2
, so you could try that as well, but host.docker.internal
should already be an alias for it.