From 882df1ec907f93782bab3e09f19beaa1408a444c Mon Sep 17 00:00:00 2001 From: Stephan Huber Date: Tue, 7 May 2024 14:17:39 +0200 Subject: [PATCH] fix: Delete container after run when using script execution context docker-compose-run --- src/Method/ScriptExecutionContext.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Method/ScriptExecutionContext.php b/src/Method/ScriptExecutionContext.php index 361e3a3b..f3a8f805 100644 --- a/src/Method/ScriptExecutionContext.php +++ b/src/Method/ScriptExecutionContext.php @@ -113,6 +113,7 @@ public function enter(ShellProviderInterface $shell): ShellProviderInterface $shell->run($this->getDockerComposeCmd('build', '--quiet'), false, true); $this->shell = $shell->startSubShell($this->getDockerComposeCmdAsArray( 'run', + '--rm', $this->getArgument('service'), $this->getArgument('shellExecutable', '/bin/sh') ));