blob: 9bc3a74720e889c1843f87d04dadbc28676ffbf0 [file] [log] [blame]
#!/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