Relative Content

Tag Archive for dockerwindow

A Docker container running on my Windows computer can not call REST services on http://localhost:8380/api/

This is in a dev. environment on my Windows 11 computer. I’m trying to call from within the container REST services that run on my computer that hosts docker run... Based on information I’d found on the web, I’d tried replacing “localhost” with “host.docker.internal” and now I’m getting System.Net.WebException: The remote name could not be resolved: 'host.docker.internal'. Could anyone please enlighten me on how should I proceed? docker run --network="host" does not work either, which is expected on Windows.