From 7e770472b15a3866a57d271daad1524c503ea765 Mon Sep 17 00:00:00 2001 From: Martin André Date: Sun, 8 Jul 2018 18:44:18 +0200 Subject: Show disk space used by docker images in CI The `docker system df` command can show the total size of the docker cache. If you pass it the `-v` option, it will break it down per image, replacing the use of `docker ps -a` and `docker images`. This should be very useful in CI to see the variation in the images size. Change-Id: I407434d88f59df65693974265551c624420d4aaf --- tests/playbooks/post.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/playbooks/post.yml b/tests/playbooks/post.yml index 9ed6128c5..574917e12 100644 --- a/tests/playbooks/post.yml +++ b/tests/playbooks/post.yml @@ -48,7 +48,7 @@ ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > logs/ps.txt # docker related information - (docker info && docker images && docker ps -a) > logs/docker-info.txt + (docker info && docker system df && docker system df -v) > logs/docker-info.txt sudo cp -r /etc/kolla logs/kolla_configs -- cgit v1.2.3