summaryrefslogtreecommitdiffstats
path: root/scripts/docker-cleanup.sh
blob: e7c7d1bf77f123dbb113f9fb0fda8123499d775e (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

# delete all but the latest images
IMAGES=`docker image ls | grep \^osmocom-build | grep -v latest  | awk -F ' ' '{print $1":"$2}'`
for f in $IMAGES; do
	docker image rm $f
done

docker image prune -f