moved scripts to specific directory

This commit is contained in:
cagache
2018-06-28 16:47:02 +03:00
parent 34fdfc4df3
commit 51ef6f5521
3 changed files with 0 additions and 0 deletions

14
scripts/cleanImages.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
set -x
echo $imagesToBeDeleted
echo "List all images:"
docker images -a
docker_images_list=$(docker images | grep '$imagesToBeDeleted' | awk '{print $3}' | uniq)
if [ "$docker_images_list" == "" ]; then
echo "No docker images on the agent"
else
echo "Clearing images: $docker_images_list"
docker rmi -f $docker_images_list
fi