From 6772962c725c5f1f6bf580461b915949db84f802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Wed, 14 Jan 2015 11:42:48 +0900 Subject: [PATCH] Pass cleanup scripts arguments to docker This allows to maintain the default behavior unchanged while making it possible to force clean. Follow-up to https://review.openstack.org/#/c/145921/ Change-Id: Ie5733b22bda9cdd7d08f5c5ecc5a3d94b984a125 --- tools/cleanup-containers | 2 +- tools/cleanup-images | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cleanup-containers b/tools/cleanup-containers index 698e6ef138..7b0e8341e0 100755 --- a/tools/cleanup-containers +++ b/tools/cleanup-containers @@ -1,3 +1,3 @@ #!/bin/bash -docker rm -f $(docker ps -a -q) +docker rm $@ $(docker ps -a -q) diff --git a/tools/cleanup-images b/tools/cleanup-images index 244b396047..df88e033a5 100755 --- a/tools/cleanup-images +++ b/tools/cleanup-images @@ -1,3 +1,3 @@ #!/bin/bash -docker rmi -f $(docker images -a -q) +docker rmi $@ $(docker images -a -q)