blob: 9bc3a74720e889c1843f87d04dadbc28676ffbf0 [file] [log] [blame]
Thomas Vachuskac419f0e2018-02-07 14:24:46 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Destroys the ONOS cluster by stopping the 3 docker containers.
4# -----------------------------------------------------------------------------
5
6# Creates ONOS cluster using ONOS docker images
7ONOS_IMAGE=onosproject/onos:1.12.0
8SSH_KEY=$(cut -d\ -f2 ~/.ssh/id_rsa.pub)
9
10for i in {1..3}; do
11 echo "Destroying onos-$i..."
12 docker stop onos-$i
13done
14
15docker container prune --force