This file contains 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 | |
set -e | |
set -o pipefail | |
CURRENT_OTP=$1 | |
NEW_OTP=$2 | |
CURRENT_NAME="" | |
NEW_NAME="" |
This file contains 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 | |
GREEN='\x1B[32m' | |
RED='\x1B[31m' | |
NOCOL='\x1B[39m' | |
echo "${GREEN}Removing exited containers${NOCOL}" | |
docker rm -v $(docker ps --filter status=dead --filter status=exited -aq) | |
echo "${GREEN}Removing dangling images${NOCOL}" | |
docker rmi $(docker images -f "dangling=true" -q) |