arquillian-cube icon indicating copy to clipboard operation
arquillian-cube copied to clipboard

The @HostIp should inject the docker host IP, and not localhost.

Open AndyGee opened this issue 6 years ago • 0 comments

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.

AndyGee avatar Apr 12 '18 09:04 AndyGee