mirror of
https://github.com/docker/compose.git
synced 2025-07-27 23:54:04 +02:00
Delete all containers on the Docker daemon before running test
This commit is contained in:
parent
f80ccab9d6
commit
83a086b865
@ -8,8 +8,9 @@ class ServiceTestCase(TestCase):
|
||||
self.client = Client('http://127.0.0.1:4243')
|
||||
self.client.pull('ubuntu')
|
||||
|
||||
for c in self.client.containers():
|
||||
for c in self.client.containers(all=True):
|
||||
self.client.kill(c['Id'])
|
||||
self.client.remove_container(c['Id'])
|
||||
|
||||
self.service = Service(
|
||||
client=self.client,
|
||||
|
Loading…
x
Reference in New Issue
Block a user