diff --git a/test/fixtures/minio-fixture/src/testFixtures/java/org/elasticsearch/test/fixtures/minio/MinioFixtureTestContainer.java b/test/fixtures/minio-fixture/src/testFixtures/java/org/elasticsearch/test/fixtures/minio/MinioFixtureTestContainer.java index 13b9857e3f4f9..824535819b318 100644 --- a/test/fixtures/minio-fixture/src/testFixtures/java/org/elasticsearch/test/fixtures/minio/MinioFixtureTestContainer.java +++ b/test/fixtures/minio-fixture/src/testFixtures/java/org/elasticsearch/test/fixtures/minio/MinioFixtureTestContainer.java @@ -26,7 +26,7 @@ public class MinioFixtureTestContainer implements TestRule { private ComposeContainer createContainer(List services) { ComposeContainer composeContainer = new ComposeContainer(resolveFixtureHome()); services.forEach(service -> composeContainer.withExposedService(service, servicePort, Wait.forListeningPort())); - return composeContainer; + return composeContainer.withLocalCompose(true); } @NotNull diff --git a/test/fixtures/s3-fixture/src/testFixtures/java/org/elasticsearch/test/fixtures/s3/S3FixtureTestContainerRule.java b/test/fixtures/s3-fixture/src/testFixtures/java/org/elasticsearch/test/fixtures/s3/S3FixtureTestContainerRule.java index 7f7a0915a945c..8f7af9a6da822 100644 --- a/test/fixtures/s3-fixture/src/testFixtures/java/org/elasticsearch/test/fixtures/s3/S3FixtureTestContainerRule.java +++ b/test/fixtures/s3-fixture/src/testFixtures/java/org/elasticsearch/test/fixtures/s3/S3FixtureTestContainerRule.java @@ -25,7 +25,7 @@ public class S3FixtureTestContainerRule implements S3Fixture { private ComposeContainer createContainer(List services) { ComposeContainer composeContainer = new ComposeContainer(resolveFixtureHome()); services.forEach(service -> composeContainer.withExposedService(service, servicePort, Wait.forListeningPort())); - return composeContainer; + return composeContainer.withLocalCompose(true); } @NotNull