arquillian-cube
arquillian-cube copied to clipboard
The @HostIp should inject the docker host IP, and not localhost.
Issue Overview
The @HostIp should be the docker host IP, and not localhost.
@HostIp
private String ipHost;
Expected Behaviour
Return the docker host IP, ie. 172.17.0.1
Current Behaviour
Returns localhost or 127.0.0.1
Steps To Reproduce
Use @HostIp in a test
Additional Information
Out of the box docker uses 172.17.0.1 on linux (or 172.42... on a mac I believe). Returning localhost as the resolved address means that the currently workaround is to look up the interface in code.