diff --git a/.directory b/.directory new file mode 100644 index 0000000..46afba0 --- /dev/null +++ b/.directory @@ -0,0 +1,7 @@ +[Dolphin] +Timestamp=2017,5,8,14,36,51 +Version=4 +ViewMode=1 + +[Settings] +HiddenFilesShown=true diff --git a/extras/remove_docker_stopped_images.sh b/extras/remove_docker_stopped_images.sh new file mode 100755 index 0000000..0eb2761 --- /dev/null +++ b/extras/remove_docker_stopped_images.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +#title :remove_docker_stopped_images.sh +#description :This script will remove all unused docker-images from the system. +# When issueing with "--force" it will also remove images which are +# in use. This will NOT remove the containers. +# Note: This script is very barebones and will produce errors +# by design. +# +#author :julian.bischof@metasfresh.com +#date :2017-04-03 +#usage :./remove_docker_stopped_images.sh [--force] +#============================================================================== + + +docker rm $(docker ps -q -f status=exited) 2>&1 >/dev/null +docker rmi $1 `docker images | awk '{ print $3; }'` 2>&1 >/dev/null + + +exit 0