mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-10 15:26:13 +01:00
bug fix to docker images
This commit is contained in:
@@ -832,13 +832,16 @@ class ContainerManager(multi.Thread):
|
|||||||
names = []
|
names = []
|
||||||
|
|
||||||
for image in imageList:
|
for image in imageList:
|
||||||
name = image.attrs['RepoTags'][0].split(":")[0]
|
try:
|
||||||
if name in names:
|
name = image.attrs['RepoTags'][0].split(":")[0]
|
||||||
images[name]['tags'].extend(image.tags)
|
if name in names:
|
||||||
else:
|
images[name]['tags'].extend(image.tags)
|
||||||
names.append(name)
|
else:
|
||||||
images[name] = {"name": name,
|
names.append(name)
|
||||||
"tags": image.tags}
|
images[name] = {"name": name,
|
||||||
|
"tags": image.tags}
|
||||||
|
except:
|
||||||
|
continue
|
||||||
|
|
||||||
return render(request, 'dockerManager/manageImages.html', {"images": images})
|
return render(request, 'dockerManager/manageImages.html', {"images": images})
|
||||||
|
|
||||||
|
|||||||
@@ -695,7 +695,6 @@ class backupUtilities:
|
|||||||
expectation.append("Permission denied")
|
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"'
|
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)
|
setupKeys = pexpect.spawn(command, timeout=3)
|
||||||
|
|
||||||
index = setupKeys.expect(expectation)
|
index = setupKeys.expect(expectation)
|
||||||
|
|||||||
Reference in New Issue
Block a user