1
0
Эх сурвалжийг харах

Remove images created by tests

Ben Firshman 11 жил өмнө
parent
commit
cf18a3141f
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      tests/testcases.py

+ 3 - 0
tests/testcases.py

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