4 ms·
1) I didn't get the Windows thing. Maybe I'm just using it too simply? 2) Existing remote db: I haven't tried, but recently came across docker 'run --net="hos
by sundvor 8y ago
1) I didn't get the Windows thing. Maybe I'm just using it too simply?
2) Existing remote db: I haven't tried, but recently came across docker 'run --net="host"' when finding host.docker.internal as how to access services running on the host from the docker image. Would that do the trick?
https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach https://stackoverflow.com/questions/24319662/from-inside-of-...
- Too 8y agoNet=host basically defeats most benefits of network isolation you get with docker. It should only be used for quick hacking. Use forward and reverse args instead. And as others said, connecting out from the container is possible by default, with the only confusion that localhost might not be what you think.
- sundvor 8y agoAhh, very good, appreciate that.