Fixed: Web UI Docker Stop/Restart does not cleanly stop container

This commit is contained in:
Eric Schultz
2016-10-30 18:43:37 -05:00
parent 789d12b7b9
commit 7d9b7c2311
@@ -753,7 +753,7 @@ class DockerClient {
public function stopContainer($id) {
$this->getDockerJSON("/containers/${id}/stop", "POST", $code);
$this->getDockerJSON("/containers/${id}/stop?t=10", "POST", $code);
$this->allContainersCache = null; // flush cache
$codes = [
"204" => true, // No error
@@ -766,7 +766,7 @@ class DockerClient {
public function restartContainer($id) {
$this->getDockerJSON("/containers/${id}/restart", "POST", $code);
$this->getDockerJSON("/containers/${id}/restart?t=10", "POST", $code);
$this->allContainersCache = null; // flush cache
$codes = [
"204" => true, // No error