Facing container launch exception even with .withOptions("--compatibility") .withLocalCompose(true) added while declaring docker Compose container #6937
Unanswered
Gayathri-811
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Facing the following exception
org.testcontainers.containers.ContainerLaunchException: Local Docker Compose exited abnormally with code 18 whilst running command: --compatibility up -d
at org.testcontainers.containers.LocalDockerCompose.invoke(DockerComposeContainer.java:850)
at org.testcontainers.containers.DockerComposeContainer.runWithCompose(DockerComposeContainer.java:337)
at org.testcontainers.containers.DockerComposeContainer.createServices(DockerComposeContainer.java:258)
at org.testcontainers.containers.DockerComposeContainer.start(DockerComposeContainer.java:189)
Declaration of docker compose container:
public static DockerComposeContainer environment = new DockerComposeContainer(new File("Docker-Compose.yml"))
.withOptions("--compatibility")
.withLocalCompose(true)
.withStartupTimeout(Duration.ofSeconds(120));
Beta Was this translation helpful? Give feedback.
All reactions