mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 07:16:15 +01:00
bug fix to docker images
This commit is contained in:
@@ -832,13 +832,16 @@ class ContainerManager(multi.Thread):
|
||||
names = []
|
||||
|
||||
for image in imageList:
|
||||
name = image.attrs['RepoTags'][0].split(":")[0]
|
||||
if name in names:
|
||||
images[name]['tags'].extend(image.tags)
|
||||
else:
|
||||
names.append(name)
|
||||
images[name] = {"name": name,
|
||||
"tags": image.tags}
|
||||
try:
|
||||
name = image.attrs['RepoTags'][0].split(":")[0]
|
||||
if name in names:
|
||||
images[name]['tags'].extend(image.tags)
|
||||
else:
|
||||
names.append(name)
|
||||
images[name] = {"name": name,
|
||||
"tags": image.tags}
|
||||
except:
|
||||
continue
|
||||
|
||||
return render(request, 'dockerManager/manageImages.html', {"images": images})
|
||||
|
||||
|
||||
@@ -695,7 +695,6 @@ class backupUtilities:
|
||||
expectation.append("Permission denied")
|
||||
|
||||
command = "ssh -o StrictHostKeyChecking=no -p "+ port +" root@"+IPAddress+' "mkdir /root/.ssh || rm -f /root/.ssh/temp && rm -f /root/.ssh/authorized_temp && cp /root/.ssh/authorized_keys /root/.ssh/temp"'
|
||||
logging.CyberCPLogFileWriter.writeToFile(command)
|
||||
setupKeys = pexpect.spawn(command, timeout=3)
|
||||
|
||||
index = setupKeys.expect(expectation)
|
||||
|
||||
Reference in New Issue
Block a user