Thomas Vachuska | c419f0e | 2018-02-07 14:24:46 -0800 | [diff] [blame] | 1 | #!/bin/bash |
Thomas Vachuska | c419f0e | 2018-02-07 14:24:46 -0800 | [diff] [blame] | 2 | |
Thomas Vachuska | 61f0e0b | 2018-05-15 14:08:11 -0700 | [diff] [blame^] | 3 | # Destroys ONOS cluster running as ONOS docker images |
Thomas Vachuska | c419f0e | 2018-02-07 14:24:46 -0800 | [diff] [blame] | 4 | SSH_KEY=$(cut -d\ -f2 ~/.ssh/id_rsa.pub) |
5 | |||||
6 | for i in {1..3}; do | ||||
7 | echo "Destroying onos-$i..." | ||||
8 | docker stop onos-$i | ||||
9 | done | ||||
10 | |||||
11 | docker container prune --force |