onos/tools/tutorials/vm/destroyCluster
Thomas Vachuska c419f0ef05 Adding artifacts for the tutorial VM.
Change-Id: I5aea02fe70ec012d7fcacebaa2f9b15b949b41b8
2018-02-07 14:53:37 -08:00

16 lines
478 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Destroys the ONOS cluster by stopping the 3 docker containers.
# -----------------------------------------------------------------------------
# Creates ONOS cluster using ONOS docker images
ONOS_IMAGE=onosproject/onos:1.12.0
SSH_KEY=$(cut -d\ -f2 ~/.ssh/id_rsa.pub)
for i in {1..3}; do
echo "Destroying onos-$i..."
docker stop onos-$i
done
docker container prune --force