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
This commit is contained in:
Martin André 2018-07-08 18:44:18 +02:00
parent c4eb866ad5
commit 7e770472b1

View File

@ -48,7 +48,7 @@
ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > logs/ps.txt ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > logs/ps.txt
# docker related information # 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 sudo cp -r /etc/kolla logs/kolla_configs