diff options
| author | Martin André <martin.andre@kvhasia.com> | 2015-01-14 11:42:48 +0900 |
|---|---|---|
| committer | Martin André <martin.andre@kvhasia.com> | 2015-01-15 09:27:27 +0900 |
| commit | 6772962c725c5f1f6bf580461b915949db84f802 (patch) | |
| tree | 99583c52385b5da5515559537425e37256ca9e47 | |
| parent | 9723a796d3ccdf3d898ae0612f48a4ec1fa91d4f (diff) | |
| download | kolla-6772962c725c5f1f6bf580461b915949db84f802.tar.gz kolla-6772962c725c5f1f6bf580461b915949db84f802.zip | |
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
| -rwxr-xr-x | tools/cleanup-containers | 2 | ||||
| -rwxr-xr-x | tools/cleanup-images | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers index 698e6ef13..7b0e8341e 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 244b39604..df88e033a 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) |
