mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-10-03 01:00:11 +03:00
parent
41d32a5f71
commit
666461277d
@ -157,7 +157,8 @@ class Docker(BaseManager):
|
|||||||
"""
|
"""
|
||||||
images = []
|
images = []
|
||||||
for image in (yield from self.query("GET", "images/json", params={"all": 0})):
|
for image in (yield from self.query("GET", "images/json", params={"all": 0})):
|
||||||
for tag in image['RepoTags']:
|
if image['RepoTags']:
|
||||||
if tag != "<none>:<none>":
|
for tag in image['RepoTags']:
|
||||||
images.append({'image': tag})
|
if tag != "<none>:<none>":
|
||||||
|
images.append({'image': tag})
|
||||||
return sorted(images, key=lambda i: i['image'])
|
return sorted(images, key=lambda i: i['image'])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user