mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 21:20:01 -06:00
Docker: honor user setting of stop time-out
This commit is contained in:
@@ -780,10 +780,7 @@ class DockerClient {
|
||||
|
||||
public function stopContainer($id, $t=false) {
|
||||
global $dockercfg;
|
||||
|
||||
if ( ! $t )
|
||||
$t = intval($dockercfg['DOCKER_TIMEOUT']) ?: 10;
|
||||
$this->getDockerJSON("/containers/$id/stop?t=$t", 'POST', $code);
|
||||
$this->getDockerJSON("/containers/$id/stop?t=".($t?:$dockercfg['DOCKER_TIMEOUT']??10), 'POST', $code);
|
||||
$this->flushCache($this::$containersCache);
|
||||
return $code;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user