aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorbinhong.hua <huabinhong@unitedstack.com>2019-01-23 14:08:25 +0800
committerbinhong.hua <huabinhong@unitedstack.com>2019-01-24 11:02:48 +0800
commit93e5e8e631eb89599913bffe0fe76d24a835d4ff (patch)
tree66f256082bbc97d0e8bc3a770f439cb65253d1b9 /tools
parent2674344bbe2d934eb879b6fc0240fa13b1bba917 (diff)
downloadkolla-ansible-93e5e8e631eb89599913bffe0fe76d24a835d4ff.tar.gz
kolla-ansible-93e5e8e631eb89599913bffe0fe76d24a835d4ff.zip
Link kolla_log volume dir to /var/log/kolla
The path /var/lib/docker/volumes/kolla_logs/_data/ is too long shorter log path will help to debug from log. The volume path is compatible with docker-engine and docker-ce. Change-Id: I9195d5f24d938f5060fe748aac3ae58c79ec5abf
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cleanup-containers3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers
index a9eec1130..91a22056f 100755
--- a/tools/cleanup-containers
+++ b/tools/cleanup-containers
@@ -43,4 +43,7 @@ done
echo "Removing volumes..."
(docker volume rm ${volumes_to_remove} 2>&1) > /dev/null
+echo "Removing link of kolla_log volume..."
+(rm -f /var/log/kolla 2>&1) > /dev/null
+
echo "All cleaned up!"