tragait | 9bbcb1b | 2020-02-24 16:33:50 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
ajay_dp001 | ec3bb1a | 2020-11-20 21:16:50 +0530 | [diff] [blame] | 3 | echo 'Stop, Removing all running containers...' |
| 4 | docker stop $(docker ps -aq) && docker rm $(docker ps -aq) |
tragait | 9bbcb1b | 2020-02-24 16:33:50 +0000 | [diff] [blame] | 5 | |
ajay_dp001 | ec3bb1a | 2020-11-20 21:16:50 +0530 | [diff] [blame] | 6 | echo 'Removing Volumes...' |
| 7 | echo y | docker volume prune |
tragait | 9bbcb1b | 2020-02-24 16:33:50 +0000 | [diff] [blame] | 8 | |
ajay_dp001 | ec3bb1a | 2020-11-20 21:16:50 +0530 | [diff] [blame] | 9 | echo 'Removing Networks...' |
| 10 | echo y | docker network prune |