diff --git a/src/test/java/x1/arquillian/Containers.java b/src/test/java/x1/arquillian/Containers.java index c289c580..f11de36e 100644 --- a/src/test/java/x1/arquillian/Containers.java +++ b/src/test/java/x1/arquillian/Containers.java @@ -51,8 +51,8 @@ public void configureAfterStart(ContainerRegistry registry) { protocolConfiguration.property("port", Integer.toString(wildfly.getMappedPort(8080))); protocolConfiguration.property("host", System.getProperty("DOCKER_HOST", wildfly.getHost())); } else { - containerConfiguration.property("managementAddress", - wildfly.getContainerInfo().getNetworkSettings().getNetworks().values().iterator().next().getIpAddress()); + containerConfiguration.property("managementAddress", wildfly.getHost()); + containerConfiguration.property("managementPort", Integer.toString(wildfly.getMappedPort(9990))); } }