I have
I have a number of
you can't. docker is not a virtual machine, and you don't get access to the docker host via IP address.
see my same question here: https://forums.docker.com/t/access-dockerized-services-via-the-containers-ip-address/21151
and my realization of how this works, here: https://derickbailey.com/2016/08/29/so-youre-saying-docker-isnt-a-virtual-machine/
if you need to use the app hosted in the container, from your localhost, expose the port of the app with the -p
option of docker run
docker run -p 8080:8080 image_name
and then connect to localhost:8080
for that service
On docker for windows you can use address 10.0.75.1:8080 but you need to configure your firewall, a better way is using address 10.0.75.2:8080,
for both addresses you have to publish your port when you run container
docker run -p 8080:8080 image_name
More info https://github.com/docker/for-win/issues/334#issuecomment-297030101