annotate scripts/updates-cleanup.sh @ 85:8f45c43ea7a4 feature/djs-DEP-12-docker

DEP-12: start upgrading scripts and compose files for RC and docker 1.12
author Dave Smith <smith@nwoca.org>
date Wed, 21 Sep 2016 19:00:41 -0400
parents 334d65dac778
children fea886ba7279
rev   line source
54
334d65dac778 add hash bangs to specify bash shell
smith@nwoca.org
parents: 53
diff changeset
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 #
f3773b50a88e add cleanup script to remove obsolete images
Dave smith <smith@nwoca.org>
parents:
diff changeset
5
f3773b50a88e add cleanup script to remove obsolete images
Dave smith <smith@nwoca.org>
parents:
diff changeset
6 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
7