summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2018-07-17 17:16:13 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-07-17 17:16:13 +0000
commit766d248dd8f0fd3cef5fda841b1dd0365427c42f (patch)
treee08f560f5ad4a61d0105e3ebf3698cba49398eb0
parente4a6c05de01febe062fac4c642613331866a68df (diff)
parent46a61e84fa16374a0973f57a78c6e512a048e15d (diff)
Merge "Ensure docker prunning can be done"HEADmaster
-rw-r--r--jjb/releng/opnfv-utils.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/jjb/releng/opnfv-utils.yaml b/jjb/releng/opnfv-utils.yaml
index 19fb4b5..1d50eb4 100644
--- a/jjb/releng/opnfv-utils.yaml
+++ b/jjb/releng/opnfv-utils.yaml
@@ -41,6 +41,7 @@
# yamllint disable rule:line-length
- shell: |
#!/bin/bash
+ sudo systemctl restart docker
(docker ps -q; docker ps -aq) | sort | uniq -u | xargs --no-run-if-empty docker rm
docker images -f dangling=true -q | xargs --no-run-if-empty docker rmi