Remove one-off containers in 'docker-compose down'
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
81f6d86ad9
commit
a2317dfac2
2 changed files with 6 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ class Project(object):
|
|||
def down(self, remove_image_type, include_volumes, remove_orphans=False):
|
||||
self.stop()
|
||||
self.find_orphan_containers(remove_orphans)
|
||||
self.remove_stopped(v=include_volumes)
|
||||
self.remove_stopped(v=include_volumes, one_off=OneOffFilter.include)
|
||||
|
||||
self.networks.remove()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue