mirror of
https://github.com/docker/compose.git
synced 2025-07-21 20:54:32 +02:00
Remove images created by tests
This commit is contained in:
parent
2ebec04811
commit
cf18a3141f
@ -17,6 +17,9 @@ class DockerClientTestCase(unittest.TestCase):
|
||||
if c['Names'] and 'figtest' in c['Names'][0]:
|
||||
self.client.kill(c['Id'])
|
||||
self.client.remove_container(c['Id'])
|
||||
for i in self.client.images():
|
||||
if 'figtest' in i['Tag']:
|
||||
self.client.remove_image(i)
|
||||
|
||||
def create_service(self, name, **kwargs):
|
||||
return Service(
|
||||
|
Loading…
x
Reference in New Issue
Block a user