aboutsummaryrefslogtreecommitdiff
path: root/tools/cleanup-containers
diff options
context:
space:
mode:
authorSwapnil Kulkarni <me@coolsvap.net>2015-07-13 07:11:27 +0000
committerSwapnil Kulkarni <me@coolsvap.net>2015-07-14 09:38:49 +0000
commit1f0acbd0cd47c4872fd57189181e06dc2bd7891b (patch)
treede5fe44978482eda85568c3b67688c9211784187 /tools/cleanup-containers
parent69338a94ba0969241a8b669eba824956912d71c4 (diff)
downloadkolla-1f0acbd0cd47c4872fd57189181e06dc2bd7891b.tar.gz
kolla-1f0acbd0cd47c4872fd57189181e06dc2bd7891b.zip
Update scripts to check if docker is usable for $USER
Added new script for checking user permissions on docker command execution Change-Id: I3b727590d9a29f416f5b847912b7250c555c2333 Closes-Bug: #1473554
Diffstat (limited to 'tools/cleanup-containers')
-rwxr-xr-xtools/cleanup-containers2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers
index efdd84376..4812f5744 100755
--- a/tools/cleanup-containers
+++ b/tools/cleanup-containers
@@ -4,6 +4,8 @@
REAL_PATH=$(python -c "import os,sys;print os.path.realpath('$0')")
cd "$(dirname "$REAL_PATH")/.."
+. tools/validate-docker-execute
+
# Remove docker containers
docker ps -a -q | while read -r line ; do
echo "Removing docker containers"