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