Remove images created by tests

This commit is contained in:
Ben Firshman 2014-01-26 19:37:35 +00:00
parent 2ebec04811
commit cf18a3141f
1 changed files with 3 additions and 0 deletions

View File

@ -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(