mirror of https://github.com/docker/compose.git
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 = Client('http://127.0.0.1:4243')
|
||||||
self.client.pull('ubuntu')
|
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.kill(c['Id'])
|
||||||
|
self.client.remove_container(c['Id'])
|
||||||
|
|
||||||
self.service = Service(
|
self.service = Service(
|
||||||
client=self.client,
|
client=self.client,
|
||||||
|
|
Loading…
Reference in New Issue