Hi,
Since primary purpose for ETS is to be used for development environments it would be nice to improve how to connect sites running on host with ETS. There is a way to modify hosts by using --add-host but you need to know what ip address will be assigned to host when container is running. For this purpose docker added docker.host.internal which you can ping to get host machine ip. I'm proposing to add --remote-on-host flag which will tell ETS to ping docker.host.internal, get host machine ip and add hostname to hosts file. For example:
docker run ets --remote-on-host=dev.site.com
will add
x.x.x.x dev.site.com to /etc/hosts where x.x.x.x will be an ip of host machine based on docker.host.internal. That will be a great enhancement for Windows and Mac users.
Hi, Since primary purpose for ETS is to be used for development environments it would be nice to improve how to connect sites running on host with ETS. There is a way to modify hosts by using
--add-host
but you need to know what ip address will be assigned to host when container is running. For this purpose docker addeddocker.host.internal
which you can ping to get host machine ip. I'm proposing to add--remote-on-host
flag which will tell ETS to pingdocker.host.internal
, get host machine ip and add hostname to hosts file. For example:docker run ets --remote-on-host=dev.site.com
will addx.x.x.x dev.site.com
to/etc/hosts
wherex.x.x.x
will be an ip of host machine based on docker.host.internal. That will be a great enhancement for Windows and Mac users.Thank you.