mirror of
https://github.com/unraid/webgui.git
synced 2026-03-13 14:30:29 -05:00
Miscellaneous updates
This commit is contained in:
@@ -505,14 +505,10 @@ class DockerUpdate{
|
||||
public function inspectLocalVersion($image) {
|
||||
$DockerClient = new DockerClient();
|
||||
$inspect = $DockerClient->getDockerJSON('/images/'.$image.'/json');
|
||||
if (empty($inspect['RepoDigests'])) {
|
||||
return null;
|
||||
}
|
||||
if (empty($inspect['RepoDigests'])) return null;
|
||||
|
||||
$shaPos = strpos($inspect['RepoDigests'][0], '@sha256:');
|
||||
if ($shaPos === false) {
|
||||
return null;
|
||||
}
|
||||
if ($shaPos === false) return null;
|
||||
|
||||
return substr($inspect['RepoDigests'][0], $shaPos + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user