Mercurial > public > ssdt-docker
annotate scripts/updates-cleanup.sh @ 341:9735d4fef9c5 production v2.7.0
flow: Merged <release> '2.7.0' to <master> ('production').
author | aldrich@ssdt-ohio.org |
---|---|
date | Mon, 04 May 2020 19:13:14 +0100 |
parents | fea886ba7279 |
children |
rev | line source |
---|---|
54 | 1 #!/bin/bash |
53
f3773b50a88e
add cleanup script to remove obsolete images
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
2 # |
f3773b50a88e
add cleanup script to remove obsolete images
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
3 # Safely removes obsolete images from previous SSDT versions. |
f3773b50a88e
add cleanup script to remove obsolete images
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
4 # |
191
fea886ba7279
DEP-12: add source for .functions.sh to all scripts using compose
smith@nwoca.org
parents:
54
diff
changeset
|
5 source "${SSDT_SCRIPTS:-$(dirname "${BASH_SOURCE[0]}")}/.functions.sh" |
53
f3773b50a88e
add cleanup script to remove obsolete images
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
6 |
f3773b50a88e
add cleanup script to remove obsolete images
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
7 docker images --filter "label=io.ssdt.app" --filter "dangling=true" -q | xargs docker rmi |
f3773b50a88e
add cleanup script to remove obsolete images
Dave smith <smith@nwoca.org>
parents:
diff
changeset
|
8 |