Update and add stuff
This commit is contained in:
parent
0ac3c44f4a
commit
5caef40378
1 changed files with 12 additions and 1 deletions
|
@ -58,7 +58,7 @@ class Docker:
|
|||
|
||||
return containers
|
||||
|
||||
def container_info(raw_info=getoutput('docker container list')):
|
||||
def all_containers_info(raw_info=getoutput('docker container list')):
|
||||
"""
|
||||
Gets info about all the Docker containers
|
||||
:return: Nested dict of containers info
|
||||
|
@ -95,6 +95,17 @@ class Docker:
|
|||
|
||||
return info
|
||||
|
||||
def container_info(container):
|
||||
"""
|
||||
Returns the info about a given container
|
||||
:parameters:
|
||||
container: The container you want info about
|
||||
|
||||
:returns:
|
||||
dict: The info about the container
|
||||
"""
|
||||
return Docker.all_containers_info()[container]
|
||||
|
||||
def compose(dir):
|
||||
"""
|
||||
Composes whatever is in dir
|
||||
|
|
Loading…
Reference in a new issue