Implement kill and rm
This commit is contained in:
parent
a4710fa9e1
commit
81093627fe
4 changed files with 51 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ class TopLevelCommand(Command):
|
|||
run Run a one-off command
|
||||
start Start services
|
||||
stop Stop services
|
||||
kill Kill containers
|
||||
rm Remove stopped containers
|
||||
|
||||
"""
|
||||
def docopt_options(self):
|
||||
|
|
@ -186,6 +188,22 @@ class TopLevelCommand(Command):
|
|||
"""
|
||||
self.project.stop()
|
||||
|
||||
def kill(self, options):
|
||||
"""
|
||||
Kill all containers
|
||||
|
||||
Usage: kill
|
||||
"""
|
||||
self.project.kill()
|
||||
|
||||
def rm(self, options):
|
||||
"""
|
||||
Remove all stopped containers
|
||||
|
||||
Usage: rm
|
||||
"""
|
||||
self.project.remove_stopped()
|
||||
|
||||
def logs(self, options):
|
||||
"""
|
||||
View output from containers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue