We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ca597 commit 8ada367Copy full SHA for 8ada367
autocompose.py
@@ -30,9 +30,9 @@ def generate(cname):
30
c = docker.from_env()
31
32
try:
33
- cid = [x.short_id for x in c.containers.list() 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]
34
except IndexError:
35
- print("That container is not running.")
+ print("That container is not available.")
36
sys.exit(1)
37
38
cattrs = c.containers.get(cid).attrs
0 commit comments