mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 21:20:01 -06:00
fixed purging cached container information when the container is removed
This commit is contained in:
@@ -778,7 +778,7 @@ class DockerClient {
|
||||
global $dockerManPaths;
|
||||
// Purge cached container information
|
||||
$info = DockerUtil::loadJSON($dockerManPaths['webui-info']);
|
||||
if (isset($info[$container])) unset($info[$container]);
|
||||
if (isset($info[$id])) unset($info[$id]);
|
||||
DockerUtil::saveJSON($dockerManPaths['webui-info'], $info);
|
||||
// Attempt to remove container
|
||||
$this->getDockerJSON("/containers/${id}?force=1", "DELETE", $code);
|
||||
|
||||
Reference in New Issue
Block a user