diff options
Diffstat (limited to 'redhat/docker/remove.sh')
-rwxr-xr-x | redhat/docker/remove.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/redhat/docker/remove.sh b/redhat/docker/remove.sh new file mode 100755 index 000000000..04f1fcc86 --- /dev/null +++ b/redhat/docker/remove.sh @@ -0,0 +1,14 @@ +#!/bin/bash -ex + +DISTRIB="$1" +TDE_VERSION="$2" +ARCH="$3" + +[ -z "${TDE_VERSION}" ] && TDE_VERSION="14.0.5" +[ -z "${ARCH}" ] && ARCH="x86_64" + +IMAGE="trinity.${DISTRIB}.${ARCH}:${TDE_VERSION}" +FILE="${HOME}/tde/docker/${IMAGE}.tar.gz" + +docker rmi -f "${IMAGE}" +rm -f "${FILE}" |