This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Remove any docker containers that are running: | |
# stop, remove them, their images, volumes and networks. | |
if $(docker ps -a -q | grep -qE "[a-z0-9]") || $(docker images | grep -qE "[a-z0-9]"); then | |
if [[ $(docker ps -a -q | head -c1 | wc -c) -ne 0 ]]; then | |
docker ps -a -q | xargs docker stop | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am komorebi-e on github. | |
* I am adey (https://keybase.io/adey) on keybase. | |
* I have a public key ASDBJ7_KCK4L88-iVkc9-YiohJOoMvVC9Ru5NFyt1H2n1go | |
To claim this, I am signing this object: |