Merge "Collect logs for containers only if docker runs"

This commit is contained in:
Jenkins 2017-01-23 13:19:56 +00:00 committed by Gerrit Code Review
commit df8e684fa9
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@
- name: Collect docker info and logs
shell: >
if command -v docker; then
if command -v docker && systemctl is-active docker; then
All_FILE=/var/log/extra/docker_allinfo.log;
docker ps --all --size &> $All_FILE;
docker images &>> $All_FILE;