mirror of
https://github.com/docker/docs.git
synced 2026-04-06 03:08:58 +07:00
Remove one-off containers in 'docker-compose down'
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user