From 412a5d8af7c14f85a8f3eff92817adbf963d981a Mon Sep 17 00:00:00 2001 From: szaimen Date: Fri, 14 Jan 2022 19:02:03 +0100 Subject: [PATCH] Remove anonymous volumes associated with the container when removing a container Signed-off-by: szaimen --- php/src/Docker/DockerActionManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/src/Docker/DockerActionManager.php b/php/src/Docker/DockerActionManager.php index 2b180310..5726e1e3 100644 --- a/php/src/Docker/DockerActionManager.php +++ b/php/src/Docker/DockerActionManager.php @@ -122,7 +122,7 @@ class DockerActionManager } public function DeleteContainer(Container $container) { - $url = $this->BuildApiUrl(sprintf('containers/%s', urlencode($container->GetIdentifier()))); + $url = $this->BuildApiUrl(sprintf('containers/%s?v=true', urlencode($container->GetIdentifier()))); try { $this->guzzleClient->delete($url); } catch (\GuzzleHttp\Exception\RequestException $e) {