diff options
Diffstat (limited to 'docker/remove_all_containers.sh')
-rwxr-xr-x | docker/remove_all_containers.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docker/remove_all_containers.sh b/docker/remove_all_containers.sh new file mode 100755 index 000000000..7327f91e6 --- /dev/null +++ b/docker/remove_all_containers.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +ids=$(docker ps -aq) + +# Stop all containers +docker stop $ids + +# Delete all containers +docker rm $ids |