Browse Source

bin: add `docker-gc` helper

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 5 years ago
parent
commit
25ead48780
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      files/bin/docker-gc

+ 6
- 0
files/bin/docker-gc

@ -0,0 +1,6 @@
#!/bin/sh
set -x
docker ps -a -q -f status=exited | xargs -r docker rm -v
docker images -f "dangling=true" -q | xargs -r docker rmi

Loading…
Cancel
Save