Skip to content

Commit aa3a9c3

Browse files
committed
Minor bug fix
1 parent 68e87ec commit aa3a9c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DockerClient.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function listContainers($options = [])
162162
public function stopContainer($id)
163163
{
164164
try {
165-
$response = $this->request('POST', sprintf('/containers/%s/stop', $id));
165+
$response = $this->request('POST', sprintf('/containers/%s/stop', $id), [], false);
166166
if ($response->getStatusCode() === 204) {
167167
return true;
168168
}
@@ -335,7 +335,7 @@ public function getContainerLogs($id, $level = 'all')
335335
public function deleteContainer($id)
336336
{
337337
try {
338-
$response = $this->request('DELETE', sprintf('/containers/%s', $id));
338+
$response = $this->request('DELETE', sprintf('/containers/%s', $id), [], false);
339339

340340
return $response->getStatusCode() === 204;
341341
} catch (ClientException $e) {

0 commit comments

Comments
 (0)