mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
13 lines
511 B
Bash
Executable File
13 lines
511 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
|
|
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
|
|
|
APP="$1"; IMAGE_REPO=$(get_app_image_repo $APP)
|
|
[[ -n $APP ]] && rm -rf "$DOKKU_ROOT/$APP" > /dev/null
|
|
|
|
# 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
|