Merge pull request #137 from nextcloud/enh/97/improve-container-removal

Remove anonymous volumes associated with the container when removing …
This commit is contained in:
Simon L 2022-01-24 12:48:14 +01:00 committed by GitHub
commit c44f4088ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -110,7 +110,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 (RequestException $e) {