FIX: Cleanup docker images per job 15/17315/1
authorPeter Mikus <pmikus@cisco.com>
Tue, 5 Feb 2019 08:59:10 +0000 (08:59 +0000)
committerPeter Mikus <pmikus@cisco.com>
Tue, 5 Feb 2019 08:59:10 +0000 (08:59 +0000)
Change-Id: Ib14d989d5f44a2aeeec122e2f63a9832a213f920
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/tools/scripts/topo_cleanup.py

index c708a5d..51a7dce 100755 (executable)
@@ -107,7 +107,7 @@ def main():
                                 sudo=True)
 
             # Kill all containers.
-            execute_command_ssh(ssh, 'docker rm $(sudo docker ps -a -q)',
+            execute_command_ssh(ssh, 'docker rm --force $(sudo docker ps -q)',
                                 sudo=True)
 
             # Destroy kubernetes.

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.