Skip to content

Commit

Permalink
Merge pull request #162 from locationlabs/use_getContainerIpAddress
Browse files Browse the repository at this point in the history
use container.getContainerIpAddress() in children of GenericContainer.AbstractWaitStrategy
  • Loading branch information
rnorth committed Jul 3, 2016
1 parent 4ebf461 commit 1b99dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ protected void waitUntilReady() {
return;
}

final String ipAddress = DockerClientFactory.instance().dockerHostIpAddress();
final String ipAddress = container.getContainerIpAddress();
try {
Unreliables.retryUntilSuccess((int) startupTimeout.getSeconds(), TimeUnit.SECONDS, () -> {
getRateLimiter().doWhenReady(() -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected void waitUntilReady() {
*/
private URI buildLivenessUri(int livenessCheckPort) {
final String scheme = (tlsEnabled ? "https" : "http") + "://";
final String host = DockerClientFactory.instance().dockerHostIpAddress();
final String host = container.getContainerIpAddress();

final String portSuffix;
if ((tlsEnabled && 443 == livenessCheckPort) || (!tlsEnabled && 80 == livenessCheckPort)) {
Expand Down

0 comments on commit 1b99dc4

Please sign in to comment.