Skip to content

Commit

Permalink
Pass env to ComposeDelegate in DockerComposeContainer#stop
Browse files Browse the repository at this point in the history
This fixes issues on stopping when ENV-Variables are used inside the compose file.
Issue was introduced in 7112db5.

Fixes testcontainers#8492

Signed-off-by: Michael Musenbrock <michael.musenbrock@gmail.com>
  • Loading branch information
mmusenbr committed Mar 27, 2024
1 parent eadc9d6 commit 1e82b80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void stop() {
if (removeImages != null) {
cmd += " --rmi " + removeImages.dockerRemoveImagesType();
}
this.composeDelegate.runWithCompose(this.localCompose, cmd);
this.composeDelegate.runWithCompose(this.localCompose, cmd, env);
} finally {
this.project = this.composeDelegate.randomProjectId();
}
Expand Down

0 comments on commit 1e82b80

Please sign in to comment.