refactor: drop all application-related docker code from apps plugin

This commit is contained in:
Jose Diaz-Gonzalez
2018-02-07 21:52:17 -07:00
parent 46f912659f
commit 3f1de1fd10
6 changed files with 49 additions and 20 deletions

View File

@@ -13,9 +13,6 @@ app_post_delete() {
rm -rf "${DOKKU_ROOT:?}/$APP" > /dev/null
fi
# remove all application containers & images
# shellcheck disable=SC2046
docker rm -f $(docker ps -a --no-trunc | egrep "dokku/${APP}:" | awk '{ print $1 }' | xargs) &>/dev/null || true
# shellcheck disable=SC2046
docker rmi $(docker images -q "$IMAGE_REPO" | xargs) &>/dev/null || true
}