esi-test-server-docker
esi-test-server-docker copied to clipboard
Add --remote-on-host configuration flag
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.
Thank you.
Does anyone monitor these issues?
Looks like we missed answering your question here, but we did see your question; it's been added to the enhancement backlog.