mirror of
https://github.com/Red5d/docker-autocompose
synced 2026-01-03 07:08:01 +00:00
@@ -32,7 +32,7 @@ def generate(cname):
|
|||||||
try:
|
try:
|
||||||
cid = [x.short_id for x in c.containers.list(all=True) if cname == x.name or x.short_id in cname][0]
|
cid = [x.short_id for x in c.containers.list(all=True) if cname == x.name or x.short_id in cname][0]
|
||||||
except IndexError:
|
except IndexError:
|
||||||
print("That container is not available.")
|
print("That container is not available.", file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
cattrs = c.containers.get(cid).attrs
|
cattrs = c.containers.get(cid).attrs
|
||||||
|
|||||||
Reference in New Issue
Block a user