fixed purging cached container information when the container is removed

This commit is contained in:
Eric Schultz
2016-07-03 16:55:31 -05:00
parent 80755e40ea
commit 099bd4ee2b

View File

@@ -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);