fabric-samples/distributed-deploy/bcp-install-main/resources/generateInstallPackage/masterPackage/template/stopNode.sh
zeoio fa0b04aaeb distributed-depoly: add copyright to codes, configs file
Signed-off-by: zeoio <kinsleer@outlook.com>
2020-04-29 10:01:42 +08:00

16 lines
No EOL
394 B
Bash

#!/bin/bash
#
# Copyright CGB Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
NODEHOST="$1"
docker stop $(docker ps -a | grep ${NODEHOST}* | awk '{print $1}')
docker rm $(docker ps -a | grep ${NODEHOST}* | awk '{print $1}')
docker rmi $(docker images | grep ${NODEHOST}* | awk '{print $1}')
docker volume rm $(docker volume list | grep ${NODEHOST}* | awk '{print $2}')