mirror of
https://github.com/unraid/webgui.git
synced 2026-05-22 22:30:20 -05:00
Fixed: Web UI Docker Stop/Restart does not cleanly stop container
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user